Permalink
Browse files

Don't block key repeat of Enter key

  • Loading branch information...
1 parent c4eba7c commit ee30567fe04f23d45a447873ff335be576696a83 @ivan ivan committed Apr 22, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/jvm/bsh/util/JConsole.java
@@ -191,11 +191,9 @@ private synchronized void type(KeyEvent e) {
switch (e.getKeyCode()) {
case (KeyEvent.VK_ENTER):
if (e.getID() == KeyEvent.KEY_PRESSED) {
- if (gotUp) {
- enter();
- resetCommandStart();
- text.setCaretPosition(cmdStart);
- }
+ enter();
+ resetCommandStart();
+ text.setCaretPosition(cmdStart);
}
e.consume();
text.repaint();

0 comments on commit ee30567

Please sign in to comment.