Detlev, Got it working. Settings now save and reload in their QKeySequence textual representation without error.
Instead of: QVariant(QString(act.shortcut())) I substituted the QKeySequence.toString() method (see attachment): QVariant(act.shortcut().toString())) I did the same for alternateShortcut. This produced the correct key sequence text in eric4.ini. I tested it with Return and Enter and everything works as expected (saves, and respective keys stay mapped). toString() returns a QString as well, but maybe does a little something extra that deals with this issue. Thanks for the help. -- Larry > From: detlev <det...@die-offenbachs.de> > Date: Tue, 19 Jan 2010 20:35:59 +0100 > To: "eric@riverbankcomputing.com" <eric@riverbankcomputing.com> > Cc: Larry Shaffer <lar...@dakotacarto.com> > Subject: Re: [Eric] Mac Fonts and Keyboard Shortcuts > > Hi, > > on my system they are not saved as hexadecimal. Actually the code uses > "QString(act.alternateShortcut())" where act is a reference to the action and > this string is encoded as utf-8. So it's > str(QString(act.alternateShortcut())).encode("utf-8"). > > Does your shortcut return something different? > > Detlev > > On Dienstag, 19. Januar 2010, Larry Shaffer wrote:
Shortcuts.py.diff
Description: Binary data
_______________________________________________ Eric mailing list Eric@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/eric