Skip to content

Commit a231224

Browse files
committed
Switch "enter" and "shift+enter" behavior in REPL
"enter" sends command "shift+enter" goes to newline (and does not send command)
1 parent f125769 commit a231224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/sc/iview/ui/REPLEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected void processKeyEvent(KeyEvent e) {
8989
return;
9090
}
9191

92-
if(e.isControlDown() && e.getKeyCode() == KeyEvent.VK_ENTER && e.getID() == KeyEvent.KEY_RELEASED) {
92+
if(!e.isShiftDown() && e.getKeyCode() == KeyEvent.VK_ENTER && e.getID() == KeyEvent.KEY_RELEASED) {
9393
String text = getText();
9494
if(text.length() == 0) {
9595
e.consume();

0 commit comments

Comments
 (0)