How do you represent Ctrl-Space in a keytrigger?

SyntaxEditor for Windows Forms Forum

Posted 17 years ago by Charles W. Hooks
Below is the XML snippet I have been playing with.

<KeyPressTrigger Key="RenameTrigger" Character="//cC ">
<KeyPressTriggerValidState State="DefaultState" />

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
KeyPressTriggers are for single typed characters only, not for characters with modifiers, etc. If you want to do keypresses with modifiers then you should handle the KeyTyping event or override the OnSyntaxEditorKeyTyping method in your SyntaxLanguage class.

Be sure that you cancel the default behavior for Ctrl+Space though because by default there is a command link set up to call the language's IntelliPromptCompleteWord method if the language's IntelliPromptMemberListSupported property returns true.

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.