diff --git a/src/main/java/org/jabref/gui/externalfiles/NewDroppedFileHandler.java b/src/main/java/org/jabref/gui/externalfiles/NewDroppedFileHandler.java index 38ac99b7f49..7086468104f 100644 --- a/src/main/java/org/jabref/gui/externalfiles/NewDroppedFileHandler.java +++ b/src/main/java/org/jabref/gui/externalfiles/NewDroppedFileHandler.java @@ -78,8 +78,13 @@ public void addNewEntryFromXMPorPDFContent(List files) { bibDatabaseContext.getDatabase().insertEntries(xmpEntriesInFile); for (BibEntry entry : xmpEntriesInFile) { + } + } + //PdfContentImporter + //List result = importer.importDatabase(file, StandardCharsets.UTF_8).getDatabase().getEntries(); + } catch (IOException e) { LOGGER.warn("Problem reading XMP", e); } diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBinding.java b/src/main/java/org/jabref/gui/keyboard/KeyBinding.java index 38cc8ac78a6..09f6d43168f 100644 --- a/src/main/java/org/jabref/gui/keyboard/KeyBinding.java +++ b/src/main/java/org/jabref/gui/keyboard/KeyBinding.java @@ -87,7 +87,8 @@ public enum KeyBinding { UNABBREVIATE("Unabbreviate", Localization.lang("Unabbreviate"), "ctrl+alt+shift+A", KeyBindingCategory.TOOLS), UNDO("Undo", Localization.lang("Undo"), "ctrl+Z", KeyBindingCategory.EDIT), WEB_SEARCH("Web search", Localization.lang("Web search"), "alt+4", KeyBindingCategory.SEARCH), - WRITE_XMP("Write XMP", Localization.lang("Write XMP"), "F6", KeyBindingCategory.TOOLS); + WRITE_XMP("Write XMP", Localization.lang("Write XMP"), "F6", KeyBindingCategory.TOOLS), + CLEAR_SEARCH("Clear search", Localization.lang("Clear search"), "ESCAPE", KeyBindingCategory.SEARCH); private final String constant; private final String localization;