[GRASS-SVN] r39958 - in grass/branches/develbranch_6/gui/wxpython:
. docs
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 10 04:12:50 EST 2009
Author: martinl
Date: 2009-12-10 04:12:48 -0500 (Thu, 10 Dec 2009)
New Revision: 39958
Modified:
grass/branches/develbranch_6/gui/wxpython/docs/wxGUI.html
grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: Ctrl+Tab to switch tabs
Modified: grass/branches/develbranch_6/gui/wxpython/docs/wxGUI.html
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/docs/wxGUI.html 2009-12-10 08:04:30 UTC (rev 39957)
+++ grass/branches/develbranch_6/gui/wxpython/docs/wxGUI.html 2009-12-10 09:12:48 UTC (rev 39958)
@@ -272,6 +272,8 @@
<b>Global</b>
<dl>
+ <dt>Ctrl+Tab</dt>
+ <dd>Switch 'Map layers' and 'Command output' tab</dd>
<dt>Alt+R</dt>
<dd>Add raster map layer</dd>
<dt>Alt+V</dt>
@@ -519,7 +521,7 @@
<h2>AUTHORS</h2>
-Martin Landa, FBK-irst, Trento, Italy<br>
+Martin Landa, FBK-irst, Trento, Italy, and CTU in Prague, Czech Republic<br>
Michael Barton, Arizona State University, USA<br>
Daniel Calvelo Aros,<br>
Jachym Cepicky
Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py 2009-12-10 08:04:30 UTC (rev 39957)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py 2009-12-10 09:12:48 UTC (rev 39958)
@@ -1523,8 +1523,18 @@
def OnKey(self, event):
"""!Check hotkey"""
+ kc = event.GetKeyCode()
+
+ if event.ControlDown():
+ if kc == wx.WXK_TAB:
+ # switch layer list / command output
+ if self.notebook.GetSelection() == 0:
+ self.notebook.SetSelection(1)
+ else:
+ self.notebook.SetSelection(0)
+
try:
- kc = chr(event.GetKeyCode())
+ ckc = chr(kc)
except ValueError:
event.Skip()
return
More information about the grass-commit
mailing list