disable keyboardshortcut if in stringgadget?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cor.

I have a program which plays a sound when pressing the space key.

I have don't it using the addkeyboardshortcut.

But now I want to edit a stringgadget with a space char, which now
of course play the sound instead of adding a space.

How can I disable temporarely the 'space' addkeyboardshortcut when
the stringgadget has focus?




Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

Use RemoveKeyboardShortcut() to remove the Shortcut, if you detect that a StringGadget
has the focus, and add a new Shortcut, if the Gadget looses the focus.

Timo
Post Reply