Skip to content

Commit 4fe6b1b

Browse files
committed
Fix weird copy with jump to key as well
Fixes #9169
1 parent 5851f71 commit 4fe6b1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/jabref/gui/maintable/MainTable.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,15 @@ public MainTable(MainTableDataModel model,
206206

207207
/**
208208
* This is called, if a user starts typing some characters into the keyboard with focus on main table. The {@link MainTable} will scroll to the cell with the same starting column value and typed string
209+
* If the user presses any other special key as well, e.g. alt or shift we don't jump
209210
*
210211
* @param sortedColumn The sorted column in {@link MainTable}
211212
* @param keyEvent The pressed character
212213
*/
213214
private void jumpToSearchKey(TableColumn<BibEntryTableViewModel, ?> sortedColumn, KeyEvent keyEvent) {
215+
if (keyEvent.isAltDown() || keyEvent.isControlDown() || keyEvent.isMetaDown() || keyEvent.isShiftDown()) {
216+
return;
217+
}
214218
if ((keyEvent.getCharacter() == null) || (sortedColumn == null)) {
215219
return;
216220
}

0 commit comments

Comments
 (0)