From b99a228f7578047d7c86c72a20fb553b903684e9 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 24 Aug 2021 23:13:28 -0400 Subject: [PATCH] Don't consume all keys in TextField. Don't deselect TextField with escape key. --- src/ui/TextField.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp index 76dd5179..3bc62b1a 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp @@ -236,20 +236,12 @@ void TextField::onSelectKey(const SelectKeyEvent& e) { if (e.keyName != "") { e.consume(this); } - // Esc - if (e.key == GLFW_KEY_ESCAPE && (e.mods & RACK_MOD_MASK) == 0) { - APP->event->setSelected(NULL); - e.consume(this); - } assert(0 <= cursor); assert(cursor <= (int) text.size()); assert(0 <= selection); assert(selection <= (int) text.size()); } - - // Consume ALL keys with ALL actions - e.consume(this); } int TextField::getTextPosition(math::Vec mousePos) {