diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-07-21 13:03:28 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-07-21 15:39:37 +1000 |
commit | 297d2f0cc9c0a233fadf42dacc08708ad3909f77 (patch) | |
tree | 7d7f679bbd675e6e95167dbbcbfeda5fd340ecd9 /discover/device-handler.c | |
parent | 7e6dd06b20beda18d07ce725e4d8c4473d10d902 (diff) | |
download | talos-petitboot-297d2f0cc9c0a233fadf42dacc08708ad3909f77.tar.gz talos-petitboot-297d2f0cc9c0a233fadf42dacc08708ad3909f77.zip |
ui/ncurses: Call widget process_key handlers first
Adding KEY_LEFT and KEY_RIGHT brought to light the problem that
widgetset_process_keys() may handle keystrokes that would have also been
handled by a widget's process_keys function. In particular the cursor
in a textbox widget could no longer be moved with the left/right keys.
This updates widgetset_process_keys() to call the focussed widget's
process_keys function before handling the key in any other way. All of
the widget process_keys functions correctly return false if the key is
not relevant to the widget except for textbox_process_key() which is
updated to ignore the main navigational keys.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.c')
0 files changed, 0 insertions, 0 deletions