From d14a7550d1ae198f8ab1a38a29e24e9485574d63 Mon Sep 17 00:00:00 2001 From: scheffle Date: Mon, 18 Nov 2024 10:55:13 +0100 Subject: [PATCH] always treat key commands as consumed --- vstgui/lib/ctexteditor.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vstgui/lib/ctexteditor.cpp b/vstgui/lib/ctexteditor.cpp index 68c481acd..29f60abea 100644 --- a/vstgui/lib/ctexteditor.cpp +++ b/vstgui/lib/ctexteditor.cpp @@ -1244,11 +1244,9 @@ void TextEditorView::onKeyboardEvent (KeyboardEvent& event) const auto& cmd = md.commandKeys[index]; if (cmd == event) { - if (handleCommand (static_cast (index))) - { - event.consumed = true; - return; - } + handleCommand (static_cast (index)); + event.consumed = true; + return; } }