Ctrl-Shift-Space in the KeyTyping event

SyntaxEditor for Windows Forms Forum

Posted 20 years ago by Russell Mason
Avatar
Hi

I can't seem to pick up Ctrl-Shift-Space in the KeyTyping event. I can pick up the Control and Shift keys but e.KeyChar always seems to be 0. Ctrl-Space and Shift-Space on their own are OK.

Any suggestions?

Thanks
Russell Mason

Comments (1)

Posted 20 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Russell,

If you go to the sample app and uncomment the KeyTyping line that prints to the Events window, you see this print when you press Ctrl+Shift+Space:

KeyTyping: KeyTypingEventArgs{KeyData=Space, Shift, Control;KeyChar=(None);Overwrite=False}

Note that Space is in the KeyData. We call a Windows API function to determine if the key press is a hotkey or a regular key so in this case it is telling us that Ctrl+Shift+Space is a hotkey. Therefore all the data is in the KeyData property.


Actipro Software Support

The latest build of this product (v25.1.0) was released 20 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.