mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Apple's command key (#53)
* Fixes #52 Handle Apple command key for keybindings * whoops
This commit is contained in:
parent
1d2e42b737
commit
a163acf036
@ -215,7 +215,7 @@ function toggleEditMode() {
|
|||||||
function setupKeybinds() {
|
function setupKeybinds() {
|
||||||
window.addEventListener("keydown", (event) => {
|
window.addEventListener("keydown", (event) => {
|
||||||
// All keybinds in the default button set include the CTRL key
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user