Fixed conflict with alt keys

svn: r14307
This commit is contained in:
Doug Blank 2010-02-10 22:25:37 +00:00
parent 8abe461bb9
commit d9fdd6bf9c

View File

@ -939,10 +939,8 @@ class ViewManager(CLIManager):
uimenuitems += '\n<menuitem action="%s"/>' % pageid uimenuitems += '\n<menuitem action="%s"/>' % pageid
uitoolitems += '\n<toolitem action="%s"/>' % pageid uitoolitems += '\n<toolitem action="%s"/>' % pageid
# id, stock, button text, UI, tooltip, page # id, stock, button text, UI, tooltip, page
if nrpage < 9 * 3: if nrpage < 9:
modifier = ["<CONTROL>", modifier = "<CONTROL>%d" % ((nrpage % 9) + 1)
"<ALT>",
"<CONTROL><ALT>"][int(nrpage / 9)] + str((nrpage % 9) + 1)
else: else:
modifier = "" modifier = ""
self.view_toggle_actions[indexcat].append((pageid, self.view_toggle_actions[indexcat].append((pageid,