Browse Source

Consume up/down arrow keys in TextField.

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

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

@@ -169,6 +169,14 @@ void TextField::onSelectKey(const SelectKeyEvent& e) {
} }
e.consume(this); 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 // Home
if (e.key == GLFW_KEY_HOME && (e.mods & RACK_MOD_MASK) == 0) { if (e.key == GLFW_KEY_HOME && (e.mods & RACK_MOD_MASK) == 0) {
selection = cursor = 0; selection = cursor = 0;


Loading…
Cancel
Save