diff options
author | corvid <corvid@lavabit.com> | 2011-01-06 02:15:06 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-06 02:15:06 +0000 |
commit | 64d3ecbb49ca39a39fda0fe77732cb09a43a401c (patch) | |
tree | 697318ded5c627f634c3875989077ae3b3e6b37c /src/uicmd.cc | |
parent | 006e1bd1bd9f9e076f31232950a134c75026f0cf (diff) |
keys and mouse buttons
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r-- | src/uicmd.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index 001165d6..6b3287a6 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -249,13 +249,13 @@ public: if (e == KEY) { int k = event_key(); // We're only interested in some flags - unsigned modifier = event_state() & (SHIFT | CTRL | ALT); - if (k == UpKey || k == DownKey || k == TabKey) { + unsigned modifier = event_state() & (FL_SHIFT | FL_CTRL | FL_ALT); + if (k == FL_Up || k == FL_Down || k == FL_Tab) { return 0; - } else if (k == LeftKey || k == RightKey) { - if (modifier == SHIFT) { + } else if (k == FL_Left || k == FL_Right) { + if (modifier == FL_SHIFT) { int i = value(); - if (k == LeftKey) {i = i ? i-1 : children()-1;} + if (k == FL_Left) {i = i ? i-1 : children()-1;} else {i++; if (i >= children()) i = 0;} selected_child(child(i)); return 1; @@ -383,7 +383,7 @@ BrowserWindow *a_UIcmd_get_bw_by_widget(void *v_wid) } /* - * FLTK regards SHIFT + {LeftKey, Right} as navigation keys. + * FLTK regards SHIFT + {Left, Right} as navigation keys. * Special handling is required to override it. Here we route * these events directly to the recipient. * TODO: focus is not remembered correctly. |