From c0ecb9a88e45b0d91588ba06bc3438f702b4ff8a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 25 Sep 2021 14:36:28 -0400 Subject: [PATCH] Consume up/down arrow keys in TextField. --- src/ui/TextField.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp index 0e3bd60a..52ac2f52 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp @@ -169,6 +169,14 @@ void TextField::onSelectKey(const SelectKeyEvent& e) { } e.consume(this); } + // Up (placeholder) + if (e.key == GLFW_KEY_UP) { + e.consume(this); + } + // Down (placeholder) + if (e.key == GLFW_KEY_DOWN) { + e.consume(this); + } // Home if (e.key == GLFW_KEY_HOME && (e.mods & RACK_MOD_MASK) == 0) { selection = cursor = 0;