How do I detect Ctrl+Space before the completion list fires?

SyntaxEditor for WPF Forum

Posted 14 years ago by Craig - Varigence, Inc.
Version: 10.2.0531
Avatar
I want to run some code when a user presses Ctrl+Space, prior to the completion list command being executed. While I do realize that I can provide my own edit action, I'm not really interesting in changing the default behavior.

Can you tell me the right way to detect that Ctrl+Space keypress ahead of the completion list command?

Thanks,

-Craig

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Craig,

You could override SyntaxEditor.OnPreviewKeyDown. Otherwise, you'd need to remove the input binding for the related command that occurs on that key sequence and replace it with one of your own.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.