Skip to content

Commit

Permalink
Use command instead of control on macos
Browse files Browse the repository at this point in the history
See merge request main/Sumatra!1886

sumatra-commit: 0a20cc96bc07d56d135a61877617aa41b76f7d7c
  • Loading branch information
g3force authored and TIGERs GitLab committed Nov 9, 2024
1 parent 71070d9 commit 0f3bbb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
import javax.swing.event.TreeSelectionEvent;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.io.BufferedReader;
import java.io.BufferedWriter;
Expand Down Expand Up @@ -189,7 +189,7 @@ public void onStart()

GlobalShortcuts.add(
"Show / hide shape selection", viewPanel, this::toggleShapeSelection,
KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, InputEvent.CTRL_DOWN_MASK));
KeyStroke.getKeyStroke(KeyEvent.VK_PERIOD, Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()));

NamedThreadFactory factory = new NamedThreadFactory("VisualizerUpdater");
updateThread = factory.newThread(this::updateLoop);
Expand Down

0 comments on commit 0f3bbb9

Please sign in to comment.