GNOME Bugzilla – Bug 589229
Keyboard shortcuts for zoom do not work as expected.
Last modified: 2012-02-23 19:20:11 UTC
There are new keyboard shortcuts for zoom in ('2', '3', '4', '5') and for zoom out ('Shift+2', 'Shift+3','Shift+4','Shift+5'). Unfortunately they behave strangely on my keyboard. 1. With NumLock enabled: When I try zoom in, numeric keys on my num pad do not work. Numeric keys over QWERTY keys work properly. When I try zoom out (Shift+number), numeric keys on my num pad work like arrows. For example: with Shift and key '2' (where is arrow down '↓') zoom values from drop down menu in the statusbar are chosen. Numeric keys over QWERTY keys do not work at all. 2. With NumLock disabled: When I try zoom in, numeric keys over QWERTY keys work properly. Numeric keys on my num pad work like arrows (as expected). When I try zoom out (Shift+number), numeric keys over QWERTY keys do not work. Numeric keys on my num pad do nothing (expected: zooming in). I hope it is quite clear.
I guess this is mostly the same reason as in bug #143579.
I've reproduced this bug, and the behavior that I get is exactly as described above; furthermore, when numLock is enabled, and I press "7,8,9" on the number pad simultaneously, the application zooms in (from 200% to 400% for example). Pressing "4,5,6" simultaneously on the number pad zooms out. As a side note: Myself and a few others have been exploring app/actions/view-actions.c to try and come up with a fix for this bug.
Created attachment 207362 [details] [review] Patch allows number pad keys to work as zoom shortcuts
Created attachment 207510 [details] [review] git format-patch for number pad zoom functionality Im a member of the programming team with comment 1 and comment 2. I attached a git format-patch version of the patch developed.
comment 2 and comment 3 **
Thanks, fixed in master: commit e507f406d7abd083dcc8fceb92b984f475a0f525 Author: Richard Bowers <rdbowers@g.cofc.edu> Date: Sun Feb 12 12:28:12 2012 -0500 Bug 589229 - Keyboard shortcuts for zoom do not work as expected Add extra actions for KP_1 ... KP_5 because they are separate keys. app/actions/view-actions.c | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-)