* support DELETE button on OSX (which is actually BACK_SPACE)

This commit is contained in:
Reinhard Pointner 2012-10-06 15:19:50 +00:00
parent ee6ff94c85
commit a8bec2fb09
3 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class FileBotList<E> extends JComponent {
removeAction.setEnabled(false);
TunedUtilities.installAction(this, KeyStroke.getKeyStroke("pressed DELETE"), removeAction);
TunedUtilities.installAction(this, KeyStroke.getKeyStroke("pressed BACK_SPACE"), removeAction);
}

View File

@ -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);
}

View File

@ -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);
}