Skip to content

Commit

Permalink
restart blink timer after command handling
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Dec 27, 2023
1 parent 4cb355c commit a3ab540
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,13 @@ bool TextEditorView::canHandleCommand (Command cmd) const
bool TextEditorView::handleCommand (Command cmd) const
{
auto This = const_cast<TextEditorView*> (this);
auto doFinally = finally ([&] () {
if (getFrame ()->getFocusView () == this)
{
This->restartBlinkTimer ();
}
});

switch (cmd)
{
case Command::SelectAll:
Expand Down

0 comments on commit a3ab540

Please sign in to comment.