#725: wxGUI: bind ctrl-q to exit
-------------------------+--------------------------------------------------
 Reporter:  hamish       |       Owner:  [email protected]
     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.


 see
  http://wiki.wxpython.org/SmallApp    (line 76)
  http://aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3347637


 ... and other accels as useful. (Especially in the vDigit'izer)


 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/725>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to