Skip to content

Commit

Permalink
Fix double paste (#5210)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDietz authored and Siedlerchr committed Aug 24, 2019
1 parent 470aa95 commit 4477a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ public void execute() {
textInput.cut();
break;
case PASTE:
textInput.paste();
// handled by FX in TextInputControl#paste
break;
default:
throw new IllegalStateException("Only cut/copy/paste supported but got " + command);
Expand All @@ -1255,7 +1255,7 @@ public void execute() {
getCurrentBasePanel().cut();
break;
case PASTE:
getCurrentBasePanel().paste();
// handled by FX in TextInputControl#paste
break;
default:
throw new IllegalStateException("Only cut/copy/paste supported but got " + command);
Expand Down

0 comments on commit 4477a13

Please sign in to comment.