changeset 3546:0df43e162a59

8162255: 'Alt-Enter v'/'Alt-Enter i' not working on some terminals Summary: Registering an additional code sequence for Alt-Enter Reviewed-by: rfield
author jlahoda
date Tue, 26 Jul 2016 15:52:51 +0200
parents 842f0bfe2811
children e18190929198
files src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Fri Jul 22 12:38:06 2016 +0100
+++ b/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Tue Jul 26 15:52:51 2016 +0200
@@ -233,6 +233,7 @@
     private static final String DOCUMENTATION_SHORTCUT = "\033\133\132"; //Shift-TAB
     private static final String[] SHORTCUT_FIXES = {
         "\033\015", //Alt-Enter (Linux)
+        "\033\012", //Alt-Enter (Linux)
         "\033\133\061\067\176", //F6/Alt-F1 (Mac)
         "\u001BO3P" //Alt-F1 (Linux)
     };