diff options
author | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-11-20 18:38:33 +0000 |
---|---|---|
committer | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-11-20 18:38:33 +0000 |
commit | 747c66c982cd36979e17d2b845f93559a9d5affd (patch) | |
tree | 528496fe301e1ebcb6964f4ccf91ac9f7ef10cd2 /riscos/window.c | |
parent | 98378081a78922e191b4c71a8a39a90eba70d99c (diff) | |
download | netsurf-747c66c982cd36979e17d2b845f93559a9d5affd.tar.gz netsurf-747c66c982cd36979e17d2b845f93559a9d5affd.tar.bz2 |
Don't pass already handled keys to the URL Complete code.
Don't scroll browser windows when the toolbar has focus.
svn path=/trunk/netsurf/; revision=13157
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/riscos/window.c b/riscos/window.c index 34c70fb01..0479fc82b 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2036,9 +2036,6 @@ bool ro_gui_window_handle_local_keypress(struct gui_window *g, wimp_key *key, case IS_WIMP_KEY | wimp_KEY_RIGHT: case IS_WIMP_KEY | wimp_KEY_CONTROL | wimp_KEY_LEFT: case IS_WIMP_KEY | wimp_KEY_CONTROL | wimp_KEY_RIGHT: - if (is_toolbar) - return false; - break; case IS_WIMP_KEY + wimp_KEY_UP: case IS_WIMP_KEY + wimp_KEY_DOWN: case IS_WIMP_KEY + wimp_KEY_PAGE_UP: @@ -2046,6 +2043,8 @@ bool ro_gui_window_handle_local_keypress(struct gui_window *g, wimp_key *key, case wimp_KEY_HOME: case IS_WIMP_KEY | wimp_KEY_CONTROL | wimp_KEY_UP: case IS_WIMP_KEY + wimp_KEY_END: + if (is_toolbar) + return false; break; default: return false; /* This catches any keys we don't want to claim */ |