Skip to content

Commit

Permalink
- remove unnecessary F4-key handling code for downloads page
Browse files Browse the repository at this point in the history
  • Loading branch information
derreisende77 committed Mar 29, 2024
1 parent 7ce3fdf commit d55224f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/main/java/mediathek/gui/tabs/tab_downloads/GuiDownloads.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ public GuiDownloads(Daten aDaten, MediathekGui mediathekGui) {

setupDownloadListStatusBar();

if (SystemUtils.IS_OS_WINDOWS)
setupF4Key(mediathekGui);

setupDownloadListTable();

setupDescriptionTab(tabelle, cbShowDownloadDescription, ApplicationConfiguration.DOWNLOAD_SHOW_DESCRIPTION);
Expand Down Expand Up @@ -184,23 +181,6 @@ public void tabelleSpeichern() {
}
}

/**
* Used on windows only...
* @param mediathekGui the app window.
*/
private void setupF4Key(MediathekGui mediathekGui) {
// zum Abfangen der Win-F4 für comboboxen
InputMap im = cbDisplayCategories.getInputMap();
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), "einstellungen");
ActionMap am = cbDisplayCategories.getActionMap();
am.put("einstellungen", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
mediathekGui.getSettingsDialog().setVisible(true);
}
});
}

private void updateFilmSizes(int[] rows) {
boolean updateNeeded = false;

Expand Down

0 comments on commit d55224f

Please sign in to comment.