8162255: 'Alt-Enter v'/'Alt-Enter i' not working on some terminals
authorjlahoda
Tue, 26 Jul 2016 15:52:51 +0200
changeset 39811 b8d3d2487379
parent 39810 d290bef927c4
child 39812 6272642715a1
8162255: 'Alt-Enter v'/'Alt-Enter i' not working on some terminals Summary: Registering an additional code sequence for Alt-Enter Reviewed-by: rfield
langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
--- a/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Fri Jul 22 12:38:06 2016 +0100
+++ b/langtools/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)
     };