Ctrl-Shift-Space in the KeyTyping event

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Russell Mason

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?

Russell Mason

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v24.1.0) 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.