InputBindings with arguments and chords

SyntaxEditor for WPF Forum

Posted 7 years ago by Ian Davis
Version: 12.2.0573
Avatar

Is it possible to implement custom input bindings that take arguments? For example "crtl+g, 55" in order to go to line 55. This is analogous to the chord bindings in VS. The only way I see to do this is to make a command change some internal state. Then the following text in a command would rely on being in that state to function properly, else it would be interpreted as its own state modifying command. Even with this solution, I don't see how to implement example above.

Comments (2)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Ian,

That would be tough to do.  As you said, using some form of state is the only way to do it.  Then you would probably need to add an IEditorViewTextInputEventSink on your language and handle the typed text there?


Actipro Software Support

Posted 7 years ago by Ian Davis
Avatar

That was my thought as well. Thanks for confirming.

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.