mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 05:46:10 +01:00
make sure all keyboard shortcuts use utility methods to not break mobile frontend
This commit is contained in:
@@ -5,12 +5,12 @@ import utils from "./utils.js";
|
||||
|
||||
function init() {
|
||||
if (utils.isElectron() && utils.isMac()) {
|
||||
utils.bindShortcut('meta+c', () => exec("copy"));
|
||||
utils.bindShortcut('meta+v', () => exec('paste'));
|
||||
utils.bindShortcut('meta+x', () => exec('cut'));
|
||||
utils.bindShortcut('meta+a', () => exec('selectAll'));
|
||||
utils.bindShortcut('meta+z', () => exec('undo'));
|
||||
utils.bindShortcut('meta+y', () => exec('redo'));
|
||||
utils.bindGlobalShortcut('meta+c', () => exec("copy"));
|
||||
utils.bindGlobalShortcut('meta+v', () => exec('paste'));
|
||||
utils.bindGlobalShortcut('meta+x', () => exec('cut'));
|
||||
utils.bindGlobalShortcut('meta+a', () => exec('selectAll'));
|
||||
utils.bindGlobalShortcut('meta+z', () => exec('undo'));
|
||||
utils.bindGlobalShortcut('meta+y', () => exec('redo'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user