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?

2 comments
Comment actions Permalink

You may try using the KeymapManager to remove existing shortcut:

Keymap active = KeymapManager.getInstance().getActiveKeymap();
1
Comment actions Permalink

Thank you! This works!

0

Please sign in to leave a comment.