Override deafult behaviour of jtext area on right click

Answered

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

0
1 comment

Hi,

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.

 

0

Please sign in to leave a comment.