From a8bec2fb0997b19d7d3782afca770052175b146f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 6 Oct 2012 15:19:50 +0000 Subject: [PATCH] * support DELETE button on OSX (which is actually BACK_SPACE) --- source/net/sourceforge/filebot/ui/FileBotList.java | 1 + source/net/sourceforge/filebot/ui/analyze/FileTreePanel.java | 1 + source/net/sourceforge/filebot/ui/sfv/SfvPanel.java | 1 + 3 files changed, 3 insertions(+) diff --git a/source/net/sourceforge/filebot/ui/FileBotList.java b/source/net/sourceforge/filebot/ui/FileBotList.java index aef0e9ab..d28d49c9 100644 --- a/source/net/sourceforge/filebot/ui/FileBotList.java +++ b/source/net/sourceforge/filebot/ui/FileBotList.java @@ -49,6 +49,7 @@ public class FileBotList extends JComponent { removeAction.setEnabled(false); TunedUtilities.installAction(this, KeyStroke.getKeyStroke("pressed DELETE"), removeAction); + TunedUtilities.installAction(this, KeyStroke.getKeyStroke("pressed BACK_SPACE"), removeAction); } diff --git a/source/net/sourceforge/filebot/ui/analyze/FileTreePanel.java b/source/net/sourceforge/filebot/ui/analyze/FileTreePanel.java index 3387d23d..b94899e4 100644 --- a/source/net/sourceforge/filebot/ui/analyze/FileTreePanel.java +++ b/source/net/sourceforge/filebot/ui/analyze/FileTreePanel.java @@ -63,6 +63,7 @@ class FileTreePanel extends JComponent { // Shortcut DELETE TunedUtilities.installAction(fileTree, KeyStroke.getKeyStroke("DELETE"), removeAction); + TunedUtilities.installAction(fileTree, KeyStroke.getKeyStroke("BACK_SPACE"), removeAction); } diff --git a/source/net/sourceforge/filebot/ui/sfv/SfvPanel.java b/source/net/sourceforge/filebot/ui/sfv/SfvPanel.java index 9c0592dd..20b79f3d 100644 --- a/source/net/sourceforge/filebot/ui/sfv/SfvPanel.java +++ b/source/net/sourceforge/filebot/ui/sfv/SfvPanel.java @@ -91,6 +91,7 @@ public class SfvPanel extends JComponent { // Shortcut DELETE TunedUtilities.installAction(this, KeyStroke.getKeyStroke("DELETE"), removeAction); + TunedUtilities.installAction(this, KeyStroke.getKeyStroke("BACK_SPACE"), removeAction); }