|
50 | 50 | import org.jabref.logic.UiCommand;
|
51 | 51 | import org.jabref.logic.ai.AiService;
|
52 | 52 | import org.jabref.logic.journals.JournalAbbreviationRepository;
|
53 |
| -import org.jabref.logic.os.OS; |
54 | 53 | import org.jabref.logic.util.BuildInfo;
|
55 | 54 | import org.jabref.logic.util.TaskExecutor;
|
56 | 55 | import org.jabref.model.database.BibDatabaseContext;
|
|
62 | 61 | import com.tobiasdiez.easybind.EasyBind;
|
63 | 62 | import com.tobiasdiez.easybind.EasyObservableList;
|
64 | 63 | import com.tobiasdiez.easybind.Subscription;
|
65 |
| -import org.fxmisc.richtext.CodeArea; |
66 | 64 | import org.jspecify.annotations.NonNull;
|
67 | 65 | import org.slf4j.Logger;
|
68 | 66 | import org.slf4j.LoggerFactory;
|
@@ -313,16 +311,6 @@ private void initKeyBindings() {
|
313 | 311 | case NEW_INPROCEEDINGS:
|
314 | 312 | new NewEntryAction(this::getCurrentLibraryTab, StandardEntryType.InProceedings, dialogService, preferences, stateManager).execute();
|
315 | 313 | break;
|
316 |
| - case PASTE: |
317 |
| - if (OS.OS_X) { // Workaround for a jdk issue that executes paste twice when using cmd+v in a TextField |
318 |
| - // Extra workaround for CodeArea, which does not inherit from TextInputControl |
319 |
| - if (!(stateManager.getFocusOwner().isPresent() && (stateManager.getFocusOwner().get() instanceof CodeArea))) { |
320 |
| - event.consume(); |
321 |
| - break; |
322 |
| - } |
323 |
| - break; |
324 |
| - } |
325 |
| - break; |
326 | 314 | default:
|
327 | 315 | }
|
328 | 316 | }
|
@@ -499,6 +487,7 @@ public void addTab(@NonNull LibraryTab libraryTab, boolean raisePanel) {
|
499 | 487 | if (raisePanel) {
|
500 | 488 | tabbedPane.getSelectionModel().select(libraryTab);
|
501 | 489 | tabbedPane.requestFocus();
|
| 490 | + libraryTab.getMainTable().requestFocus(); |
502 | 491 | }
|
503 | 492 |
|
504 | 493 | libraryTab.setContextMenu(createTabContextMenuFor(libraryTab));
|
|
0 commit comments