How to override built-in action's key mapping?

Answered

Currently, if I have an action in my plugin which has a key mapping which is already used by a built-in Action in IDEA, it is ignored. How to override the built-in action with my action?

0
2 comments

You may try using the KeymapManager to remove existing shortcut:

Keymap active = KeymapManager.getInstance().getActiveKeymap();
1

Thank you! This works!

0

Please sign in to leave a comment.