Page 1 of 1

AddKeyboardShortcut()

Posted: Tue Sep 24, 2019 12:18 pm
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.

Re: AddKeyboardShortcut()

Posted: Mon Nov 11, 2019 1:08 pm
by Blue
+1

Re: AddKeyboardShortcut()

Posted: Mon Nov 11, 2019 1:18 pm
by BarryG
+1

Re: AddKeyboardShortcut()

Posted: Tue Mar 03, 2020 11:53 pm
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