fixed F6
This commit is contained in:
parent
d14dd1fd54
commit
703acb743b
@ -110,6 +110,10 @@ public class MainWindow extends JFrame {
|
||||
mainPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
|
||||
mainPanel.setContinuousLayout(true);
|
||||
|
||||
// Disable default JSplitPane F6/Shift+F6 bindings which interfere with our Move/Rename actions
|
||||
mainPanel.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), "none");
|
||||
mainPanel.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, InputEvent.SHIFT_DOWN_MASK), "none");
|
||||
|
||||
// Left panel - load path and ViewMode from configuration
|
||||
String leftPath = config.getLeftPanelPath();
|
||||
leftPanel = new FilePanel(leftPath);
|
||||
@ -1473,6 +1477,11 @@ public class MainWindow extends JFrame {
|
||||
// Remove standard Swing TAB behavior
|
||||
table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)
|
||||
.put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0), "switchPanel");
|
||||
|
||||
// Disable default F6/Shift+F6 bindings which interfere with our Move/Rename actions
|
||||
table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), "none");
|
||||
table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, InputEvent.SHIFT_DOWN_MASK), "none");
|
||||
|
||||
table.getActionMap().put("switchPanel", new AbstractAction() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user