Code: Select all
AddKeyboardShortcut(#Window0, #PB_Shortcut_ | #PB_Shortcut_, #menuitem)
- also fails:
Code: Select all
AddKeyboardShortcut(#Window0, #PB_Shortcut_-, #menuitem)
My ungainly but effective workaround is to remove the Shortcut from the menu item in the designer, and manually reset menu text (required to add the $Tab + Shortcut part) and manually add the keyboard shortcut in my startup code:
Code: Select all
SetMenuItemText(0,#mnuZoomIn, "Zoom In"+#TAB$+"+")
AddKeyboardShortcut(#Window0, #PB_Shortcut_Add, #mnuZoomIn)