mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make go to declaration shortcut also work on console hyperlinks (IDEA-120911)
This commit is contained in:
@@ -898,7 +898,9 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
|
||||
}
|
||||
|
||||
private void registerConsoleEditorActions() {
|
||||
new HyperlinkNavigationAction().registerCustomShortcutSet(CommonShortcuts.ENTER, myEditor.getContentComponent());
|
||||
HyperlinkNavigationAction hyperlinkNavigationAction = new HyperlinkNavigationAction();
|
||||
hyperlinkNavigationAction.registerCustomShortcutSet(CommonShortcuts.ENTER, myEditor.getContentComponent());
|
||||
registerActionHandler(myEditor, IdeActions.ACTION_GOTO_DECLARATION, hyperlinkNavigationAction);
|
||||
|
||||
if (!myIsViewer) {
|
||||
new EnterHandler().registerCustomShortcutSet(CommonShortcuts.ENTER, myEditor.getContentComponent());
|
||||
|
||||
Reference in New Issue
Block a user