Skip to content

Commit

Permalink
always treat key commands as consumed
Browse files Browse the repository at this point in the history
scheffle committed Nov 18, 2024
1 parent e9b169b commit d14a755
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions vstgui/lib/ctexteditor.cpp
Original file line number Diff line number Diff line change
@@ -1244,11 +1244,9 @@ void TextEditorView::onKeyboardEvent (KeyboardEvent& event)
const auto& cmd = md.commandKeys[index];
if (cmd == event)
{
if (handleCommand (static_cast<Command> (index)))
{
event.consumed = true;
return;
}
handleCommand (static_cast<Command> (index));
event.consumed = true;
return;
}
}

0 comments on commit d14a755

Please sign in to comment.