Hi,
according to the documentation the syntax is AddKeyboardShortcut(#Window, Shortcut, Event).
However, the quick help in the statusbar of the editor says AddKeyboardShortcut(#Window, Key, Event).
That's irritating because you associate Key with #PB_Key_* and not with #PB_Shortcut_*.
Also Event should be renamed to MenuEvent.
AddKeyboardShortcut()
Moderator: Documentation Editors
Re: AddKeyboardShortcut()
+1
PB Forums : Proof positive that 2 heads (or more...) are better than one 

- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: AddKeyboardShortcut()
A good point, I already made this mistake myself...
As the QuickHelp is related to the PB IDE it should be updated by Fred (or the community on GitHub), then also the PB manual could be adapted if needed
As the QuickHelp is related to the PB IDE it should be updated by Fred (or the community on GitHub), then also the PB manual could be adapted if needed
