Assigning keys to actions by context programatically, in keymaps *.xml, or plugin.xml?
Answered
In my plugin, I would really like to assign shortcuts to my actions in a way that they are only valid in the editor.
For instance, I would like to modify the behavior of "HOME" in the editor, but not affect the use of HOME in a file rename dialog or other application dialogs.
But when I assign the HOME key to my custom action, it does not get called unless I remove conflicts. When I remove the conflicts, HOME no longer works in most dialogs, but it does work in the editor.
Unless I am just doing this incorrectly. Still investigating.
Thanks, Ralph
Please sign in to leave a comment.
Please try using com.intellij.openapi.actionSystem.ActionPromoter extension point to change priority. https://plugins.jetbrains.com/intellij-platform-explorer?extensions=com.intellij.actionPromoter