Add Ctrl-Shift-Q and Ctrl-Shift-W to change scale in 10% steps.

svn path=/trunk/netsurf/; revision=2593
This commit is contained in:
James Bursa 2006-05-06 13:09:50 +00:00
parent 9de2b660a3
commit b813b44a63
1 changed files with 7 additions and 1 deletions

View File

@ -2061,7 +2061,13 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar)
if (!content)
break;
old_scale = g->option.scale;
if (key == 17) {
if (ro_gui_shift_pressed() && key == 17)
g->option.scale = ((int) (10 * g->option.scale -
1)) / 10.0;
else if (ro_gui_shift_pressed() && key == 23)
g->option.scale = ((int) (10 * g->option.scale +
1)) / 10.0;
else if (key == 17) {
for (int i = SCALE_SNAP_TO_SIZE - 1; i >= 0; i--)
if (scale_snap_to[i] < old_scale) {
g->option.scale = scale_snap_to[i];