Ctrl-Shift-Space in the KeyTyping event

SyntaxEditor for Windows Forms Forum

Posted 14 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 14 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 (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.