dabo Commit
Revision 7140
Date: 2012-04-25 12:49:10 -0700 (Wed, 25 Apr 2012)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7140
Changed:
U trunk/ide/ClassDesignerPropSheet.py
Log:
Improved the HotKey editing code
Diff:
Modified: trunk/ide/ClassDesignerPropSheet.py
===================================================================
--- trunk/ide/ClassDesignerPropSheet.py 2012-04-24 08:48:17 UTC (rev 7139)
+++ trunk/ide/ClassDesignerPropSheet.py 2012-04-25 19:49:10 UTC (rev 7140)
@@ -608,14 +608,13 @@
dlg.Centered = True
dlg.show()
if dlg.Accepted and dlg.Changed:
- obj.HotKey = dlg.KeyText
- # Set the sub-props
- obj.HotKeyChar = dlg.KeyChar.upper()
- obj.HotKeyControl = dlg.Ctrl
- obj.HotKeyShift = dlg.Shift
- obj.HotKeyAlt = dlg.Alt
- self.updateVal(prop, dlg.KeyText, unicode)
- self.propGrid.CurrentValue = dlg.KeyText
+ keyText = dlg.KeyText
+ if keyText is None:
+ keyText = ""
+ # Setting the HotKey prop should update the related
sub-props.
+ obj.HotKey = keyText
+ self.updateVal(prop, keyText, unicode)
+ self.propGrid.CurrentValue = keyText
self.propGrid.refresh()
dlg.release()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]