Discarding Keyboard-Events for GUI
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have an application that has a keyboard-listener (system-hook). It is being notified on any keyboad-event, even if the app-windows is not active. As far as that it works as designed. My problem is, that it is possible, that someone pushed the space-bar or the cursor-buttons, what effects on the GUI, e.g. to buttons, list-views, etc... So if someone presses the curser-buttons a highlight wanders around my gui. And if the spacebar is hit and a button was highlighted this button will be pressed. This is what i´d like to avoid. What i´d like to have is to make the gui ignore these keyboard inputs (except textboxes, where you need the keyboard). Is there a way of making the GUI-elements not react on keyboard-actions? Thanx J.