diff --git a/src/main/java/org/jabref/gui/preferences/protectedterms/ProtectedTermsTab.java b/src/main/java/org/jabref/gui/preferences/protectedterms/ProtectedTermsTab.java index c5d1aa5b2c5..3695201ca61 100644 --- a/src/main/java/org/jabref/gui/preferences/protectedterms/ProtectedTermsTab.java +++ b/src/main/java/org/jabref/gui/preferences/protectedterms/ProtectedTermsTab.java @@ -7,11 +7,11 @@ import javafx.scene.control.TableView; import javafx.scene.control.cell.CheckBoxTableCell; -import org.jabref.gui.Globals; import org.jabref.gui.actions.ActionFactory; import org.jabref.gui.actions.SimpleCommand; import org.jabref.gui.actions.StandardActions; import org.jabref.gui.icon.IconTheme; +import org.jabref.gui.keyboard.KeyBindingRepository; import org.jabref.gui.preferences.AbstractPreferenceTabView; import org.jabref.gui.preferences.PreferencesTab; import org.jabref.gui.util.BindingsHelper; @@ -36,6 +36,7 @@ public class ProtectedTermsTab extends AbstractPreferenceTabView filesTableDeleteColumn; @Inject private ProtectedTermsLoader termsLoader; + @Inject private KeyBindingRepository keyBindingRepository; public ProtectedTermsTab() { ViewLoader.view(this) @@ -87,7 +88,7 @@ public void initialize() { } private ContextMenu createContextMenu(ProtectedTermsListItemModel file) { - ActionFactory factory = new ActionFactory(Globals.getKeyPrefs()); + ActionFactory factory = new ActionFactory(keyBindingRepository); ContextMenu contextMenu = new ContextMenu(); contextMenu.getItems().addAll( factory.createMenuItem(StandardActions.EDIT_LIST, new ProtectedTermsTab.ContextAction(StandardActions.EDIT_LIST, file)), diff --git a/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml b/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml index 57a80d60bf7..06ee5a0e0dd 100644 --- a/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml +++ b/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTab.fxml @@ -30,10 +30,10 @@