Skip to content

Commit

Permalink
Feature Fix: Added Mac keyboard shortcut to reopen closed tools (issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenGnu committed Mar 2, 2022
1 parent 2d7b10a commit f83f48f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public MainWindow(final Program program) {

JPanel jPanel = new JPanel();
jPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.CTRL_DOWN_MASK + InputEvent.SHIFT_DOWN_MASK), "reOpenTab");
jPanel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_T, InputEvent.META_DOWN_MASK + InputEvent.SHIFT_DOWN_MASK), "reOpenTab");
jPanel.getActionMap().put("reOpenTab", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
Expand Down

0 comments on commit f83f48f

Please sign in to comment.