Browse Source

Deselect TextField with escape key.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
0563858b26
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/ui/TextField.cpp

+ 5
- 0
src/ui/TextField.cpp View File

@@ -228,6 +228,11 @@ void TextField::onSelectKey(const SelectKeyEvent& e) {
}
e.consume(this);
}
// Escape
if (e.key == GLFW_KEY_ESCAPE && (e.mods & RACK_MOD_MASK) == 0) {
APP->event->setSelectedWidget(NULL);
e.consume(this);
}
// Tab
if (e.key == GLFW_KEY_TAB && (e.mods & RACK_MOD_MASK) == 0) {
if (nextField)


Loading…
Cancel
Save