Override deafult behaviour of jtext area on right click


I have binded the Jtext area with PopUpmenus in in my Jpanel. I want that popup menus should only be seen when I click on" /" key  but the popup menus are also shown if i right click in jtext area. I know this is deafult behaviour of jtext area but I dont want the popup on right click

1 comment


Before implementing the feature, get familiar with https://plugins.jetbrains.com/docs/intellij/plugin-user-experience.html. It is very important that plugin and IDE behave according to the user expectations.

You can try implementing com.intellij.codeInsight.editorActions.TypedHandlerDelegate. Menu showing is implemented in com.intellij.ide.actions.ShowPopupMenuAction.



Please sign in to leave a comment.