Introduce flag for AddKeyboardShortcut()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
akj
Enthusiast
Enthusiast
Posts: 668
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Introduce flag for AddKeyboardShortcut()

Post by akj »

Currently AddKeyboardShortcut() generates events of type #PB_Event_Menu but I would like an optional flag to be added to enable it to generate events of type #PB_Event_Gadget

For example:

Code: Select all

AddKeyboardShortcut(#winMain, #PB_Shortcut_Escape, #buttonExit, #PB_Event_Gadget)
Anthony Jordan
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

how do you want to catch that reasonably, if you don't define an event type
Post Reply