aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-21 02:31:24 +0100
committerjcid <devnull@localhost>2007-11-21 02:31:24 +0100
commitd57413d5a92a875aca6327fb227207a2eba95e81 (patch)
tree2b123f97e11d7c29402e25c0d06e7873893a370b /src/ui.cc
parente3dc26c04e15024ffb1b130c626bb4d5e8c7bdff (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.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 90b5f26f..943a2409 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -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') {