I'm a big fan of keyboard shortcuts, so I decided to add these guys to
I'm not sure if this is too much, and maybe these should be configurable
down the line, but here's my first stab at it, what do you all think?
in the same order as they appear in the toolbar:
'h' or 'r' for Home/Reset
left arrow or 'z' or backspace for Back
right arrow and 'x' for Forward
'p' for pan axes with right, zoom with left mode toggle
'o' for z*o*om to rectangle mode toggle
's' for save
'z' and 'x' I borrowed from the Opera browser, very handy to for
righties who can have their left hand on the keyboard while using the mouse.
I decided to use 'o' for zoom to rect since it's located right next to
the 'p' for panning, and both are modes.
There was also a message on the matplotlib-users list in July that this
patch would be useful for
Subj: [Matplotlib-users] tool bar help / feature request
(but I don't know how to reply to that message as I was not on the the
users list at that time)
keyboard_navigation.diff (1.1 KB)
From: Ben Axelrod <baxelrod@...653...> - 2008-07-31 16:08