wxGUI: bind ctrl-q to exit
|Reported by:||hamish||Owned by:|
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.
... and other accels as useful. (Especially in the vDigit'izer)