#725: wxGUI: bind ctrl-q to exit
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Keywords: menu | Platform: All
Cpu: All |
-------------------------+--------------------------------------------------
Hi,
it would be nice if ctrl-q exited the wxGUI. (with are you sure? as per
preferences)
I bits about just adding it as a "\tCtrl-Q" in the menu item label, but
that doesn't seem to work (xml/i18n?).
in the code you can apparently do like:
{{{
self.SetAcceleratorTable(wxAcceleratorTable([(wxACCEL_CTRL, ord('Q'),
ID_EXIT)]))
}}}
but I've not figured out how to get that to work.
#725: wxGUI: bind ctrl-q to exit
--------------------------+-------------------------------------------------
Reporter: hamish | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: menu
Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by hamish):
Nice thanks.
feedback and now more wishes:
- could ctrl-q work from when focus is on e.g. the map display too?
- alt-r,v: a nice thing!
- (but/yet), how about Alt-F for _File menu, Alt-C for _Config menu etc?
(difficult due to i18n?) alt-r,v would then have to become ctrl-r,v.
- this was proposed earlier on the list: in GRASS 5's v.digit there used
to be keyboard shortcuts for most digitizing tasks. This is probably the
most important area to have optional keyboard bindings and the most
productive for a power user -- where there is serious amounts mouse-work
involved in some repetitive task.
- maybe a keyboard binding for the eyeball display button in the map
display window. (since forever this has been ctrl-r in web browsers for
reload, ctrl-shift-r for full no-cache reload)
- Plain +,- for zoom in/out one step in the map display window? Plain "p"
to switch mouse cursor into pan mode?
- ctrl-c: This has many common meanings already, I would not use it for
"close workspace". Ctrl-w is often used for that (close tab etc) so I'd
suggest to use that. Then ctrl-c is free to Copy selection in the Output
tab.