diff options
author | jcid <devnull@localhost> | 2007-11-21 02:31:24 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-21 02:31:24 +0100 |
commit | d57413d5a92a875aca6327fb227207a2eba95e81 (patch) | |
tree | 2b123f97e11d7c29402e25c0d06e7873893a370b /src/ui.cc | |
parent | e3dc26c04e15024ffb1b130c626bb4d5e8c7bdff (diff) |
- Switched dillo to push a URL with fragment (anchor) into the stack.
- Re-enabled scrolling with Up/Down arrows.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -64,7 +64,7 @@ int NewInput::handle(int e) int k = event_key(); bool ctrl = event_state(CTRL); - _MSG("NewInput::handle event=%d", e); + _MSG("NewInput::handle event=%d\n", e); if (ctrl && (k == 'o' || k == 'r' || k == HomeKey || k == EndKey)) return 0; if ((e == KEY || e == KEYUP) && @@ -653,6 +653,15 @@ int UI::handle(int event) { int ret = 0; + _MSG("UI::handle event=%d\n", event); + + // Let FLTK pass these events to child widgets. + if (event == KEY) { + if (event_key() == UpKey || event_key() == DownKey) + return 0; + } + + // Handle these shortcuts here. if (event == SHORTCUT) { if (event_state(CTRL)) { if (event_key() == 'l') { |