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
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
"Oh! I see..." replied the blind man.
- Andre
- PureBasic Team
- Posts: 2056
- 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