Skip to content

Commit

Permalink
Apple's command key (#53)
Browse files Browse the repository at this point in the history
* Fixes #52

Handle Apple command key for keybindings

* whoops
  • Loading branch information
masl authored Jan 18, 2023
1 parent 1d2e42b commit a163acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/assets/js/modules/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function toggleEditMode() {
function setupKeybinds() {
window.addEventListener("keydown", (event) => {
// All keybinds in the default button set include the CTRL key
if ((EDIT_MODE && !event.ctrlKey && event.code !== "Escape") || (!EDIT_MODE && !event.ctrlKey)) {
if ((EDIT_MODE && !event.ctrlKey && !event.metaKey && event.code !== "Escape") || (!EDIT_MODE && !event.ctrlKey && !event.metaKey)) {
return;
}

Expand Down

0 comments on commit a163acf

Please sign in to comment.