shortcuts for mac should use cmd instead of ctrl, closes #290

This commit is contained in:
azivner
2019-01-09 21:42:16 +01:00
parent 99e56a9c42
commit 3ff3021acd
3 changed files with 5 additions and 11 deletions

View File

@@ -137,6 +137,11 @@ function randomString(len) {
function bindShortcut(keyboardShortcut, handler) {
if (isDesktop()) {
if (isMac()) {
// use CMD (meta) instead of CTRL for all shortcuts
keyboardShortcut = keyboardShortcut.replace("ctrl", "meta");
}
$(document).bind('keydown', keyboardShortcut, e => {
handler();