make go to declaration shortcut also work on console hyperlinks (IDEA-120911)

This commit is contained in:
peter
2014-02-19 13:07:19 +01:00
parent bfdc9c9c2e
commit 09450b1c69
@@ -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());