|key bindings to command and action [message #334963]
||Thu, 12 March 2009 10:26
Registered: July 2009
Is it possible to bind key sequence to one command in one view and to
amother command/action in another editor?
This is how I tried but no success:
application has scheme and context e.g.
M1+R is bound to command - command1 and available in most of views and
Now one editor has action say editorAction1 and I want to bind M1+R to
that action when user is working on that editor.
subContext - parent - myContext
command - id set to ActionDefinitionId of editorAction1 say
I put code to activate this context in focus gain of editor and
deactivate in focus lost i.e.
contextActivation = ((IContextService)
May be I am doing something wrong or missing something, any suggestions?
Powered by FUDForum
. Page generated in 0.01843 seconds