AddKeyboardShortcut()

Found an issue in the documentation ? Please report it here !

Moderator: Documentation Editors

nicoh
User
User
Posts: 26
Joined: Thu Sep 19, 2019 10:44 am

AddKeyboardShortcut()

Post by nicoh »

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.
User avatar
Blue
Addict
Addict
Posts: 864
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: AddKeyboardShortcut()

Post by Blue »

+1
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: AddKeyboardShortcut()

Post by BarryG »

+1
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2056
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: AddKeyboardShortcut()

Post by Andre »

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 :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Post Reply