diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-17 18:57:29 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-17 18:57:29 -0400 |
commit | 5bffa87a1d72795ae5c6a7a4778bf6f7323bb953 (patch) | |
tree | 3517d49b608bf782869ae3f9b7ac97bf7a54e42a /src/ui.cc | |
parent | 43bc67a98263ec6c4a561c3c14dc688b7ee59fca (diff) |
Made KEYS_LEFT_TAB and KEYS_RIGHT_TAB no longer handled as a special case
* Made TAB-key focus the main area from location input.
* Made KEYS_LEFT_TAB and KEYS_RIGHT_TAB cycle..
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -93,8 +93,8 @@ public: }; /* - * Disable keys: Up, Down, Page_Up, Page_Down and - * CTRL+{o,r,Home,End} + * Disable keys: Up, Down, Page_Up, Page_Down, Tab and + * CTRL+{o,r,Home,End} SHIFT+{Left,Right}. */ int CustInput::handle(int e) { @@ -113,7 +113,11 @@ int CustInput::handle(int e) if (k == FL_Escape && modifier == 0) { // Let the parent group handle this Esc key return 0; - + } else if (modifier == FL_SHIFT) { + if (k == FL_Left || k == FL_Right) { + // Let these keys get to the UI + return 0; + } } else if (modifier == FL_CTRL) { if (k == 'l') { // Make text selected when already focused. @@ -126,7 +130,7 @@ int CustInput::handle(int e) } } else if (modifier == 0) { if (k == FL_Down || k == FL_Up || - k == FL_Page_Down || k == FL_Page_Up) { + k == FL_Page_Down || k == FL_Page_Up || k == FL_Tab) { // Give up focus and honor the key a_UIcmd_focus_main_area(a_UIcmd_get_bw_by_widget(this)); return 0; |