Author: johannes
Date: 2006-10-12 09:26:07 -0500 (Thu, 12 Oct 2006)
New Revision: 8772
Modified:
trunk/gnue-forms/src/uidrivers/_base/UserActions.py
trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py
Log:
Fixed QKeySequence for Page-Down
Modified: trunk/gnue-forms/src/uidrivers/_base/UserActions.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/_base/UserActions.py 2006-10-12 13:50:48 UTC
(rev 8771)
+++ trunk/gnue-forms/src/uidrivers/_base/UserActions.py 2006-10-12 14:26:07 UTC
(rev 8772)
@@ -29,7 +29,9 @@
from gnue.common.apps import GConfig
from gnue.forms.input import GFKeyMapper
+
import os
+import copy
_iconpath = GConfig.getInstalledBase('form_images', 'common_images')
_iconset = gConfigForms('IconSet')
@@ -77,6 +79,7 @@
hotKey = self.getHotKeyTuple ()
if hotKey:
+ print "HOT-KEY-TUPLE:", hotKey
(key, shift, ctrl, meta) = hotKey
up = GFKeyMapper.KeyMapper.getKeyTranslation (GFKeyMapper.vk.UP)
down = GFKeyMapper.KeyMapper.getKeyTranslation (GFKeyMapper.vk.DOWN)
Modified: trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py 2006-10-12 13:50:48 UTC
(rev 8771)
+++ trunk/gnue-forms/src/uidrivers/qt3/MenuBar.py 2006-10-12 14:26:07 UTC
(rev 8772)
@@ -80,7 +80,6 @@
@returns: the newly created menu item
"""
- hotkey = userAction.getHotKeyText()
iconloc = userAction.getIconLocation(size="16x16")
label = name
@@ -92,6 +91,7 @@
else:
mid = parent.insertItem(label)
+ hotkey = userAction.getHotKeyText({'PAGEDOWN': 'PgDown'})
if hotkey:
parent.setAccel(qt.QKeySequence(hotkey), mid)
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue