From 9096894a21e283ba1dc557da839a671214c0eda7 Mon Sep 17 00:00:00 2001 From: superp00t Date: Fri, 25 Aug 2023 16:04:34 -0400 Subject: [PATCH] fix(console): query if either CTRL key is pressed in OnKeyDownRepeat --- src/console/Handlers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/console/Handlers.cpp b/src/console/Handlers.cpp index 1a63a05..6bf03d5 100644 --- a/src/console/Handlers.cpp +++ b/src/console/Handlers.cpp @@ -132,6 +132,8 @@ int32_t OnKeyDownRepeat(const EVENT_DATA_KEY* data, void* param) { return 0; } + auto anyControl = (1 << KEY_LCONTROL) | (1 << KEY_RCONTROL); + auto line = GetInputLine(); switch (data->key) { @@ -161,7 +163,6 @@ int32_t OnKeyDownRepeat(const EVENT_DATA_KEY* data, void* param) { ResetHighlight(); } - return 1; }