How do you represent Ctrl-Space in a keytrigger?

SyntaxEditor for Windows Forms Forum

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


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

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.