diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-02-03 19:14:25 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-02-03 19:14:25 +0000 |
commit | 4c27d6dd8e05a6144299b6460020a0089e1360c0 (patch) | |
tree | 3ba0a4501985f1de3b840f647cd0810af3ad16fb /amiga | |
parent | 34f1e427f98dfad851372229b2d33599630dd5e8 (diff) | |
download | netsurf-4c27d6dd8e05a6144299b6460020a0089e1360c0.tar.gz netsurf-4c27d6dd8e05a6144299b6460020a0089e1360c0.tar.bz2 |
Ensure scale can be accssed from the keyboard
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 9c7f29d71..d26db2b88 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1766,7 +1766,22 @@ void ami_handle_msg(void) ami_tree_open(hotlist_window, AMI_TREE_HOTLIST); break; -/* The following aren't available from the menu at the moment */ + case '-': + if(browser_window_get_scale(gwin->bw) > 0.1) + browser_window_set_scale(gwin->bw, + browser_window_get_scale(gwin->bw) - 0.1, false); + break; + + case '=': + browser_window_set_scale(gwin->bw, 1.0, false); + break; + + case '+': + browser_window_set_scale(gwin->bw, + browser_window_get_scale(gwin->bw) + 0.1, false); + break; + + /* The following aren't available from the menu at the moment */ case 'r': // reload if(browser_window_reload_available(gwin->bw)) |