Skip to content

Commit b56be1b

Browse files
committed
Add helpful methods to have more control over blinking caret. (#115)
1 parent 878cf8c commit b56be1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CSharpMath.Editor/MathKeyboard.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public MathKeyboard(TypesettingContext<TFont, TGlyph> context, TFont font, doubl
3535
};
3636
blinkTimer.Start();
3737
}
38-
38+
public void StartBlinking() => blinkTimer.Start();
39+
public void StopBlinking() => blinkTimer.Stop();
3940
//private readonly List<MathListIndex> highlighted;
4041
protected TypesettingContext<TFont, TGlyph> Context { get; }
4142
static void ResetPlaceholders(MathList mathList) {

0 commit comments

Comments
 (0)