mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
make sure all keyboard shortcuts use utility methods to not break mobile frontend
This commit is contained in:
@@ -457,17 +457,17 @@ $(tabRow.el).on('contextmenu', '.note-tab', e => {
|
||||
});
|
||||
|
||||
if (utils.isElectron()) {
|
||||
utils.bindShortcut('ctrl+t', () => {
|
||||
utils.bindGlobalShortcut('ctrl+t', () => {
|
||||
openEmptyTab();
|
||||
});
|
||||
|
||||
utils.bindShortcut('ctrl+w', () => {
|
||||
utils.bindGlobalShortcut('ctrl+w', () => {
|
||||
if (tabRow.activeTabEl) {
|
||||
tabRow.removeTab(tabRow.activeTabEl);
|
||||
}
|
||||
});
|
||||
|
||||
utils.bindShortcut('ctrl+tab', () => {
|
||||
utils.bindGlobalShortcut('ctrl+tab', () => {
|
||||
const nextTab = tabRow.nextTabEl;
|
||||
|
||||
if (nextTab) {
|
||||
@@ -475,7 +475,7 @@ if (utils.isElectron()) {
|
||||
}
|
||||
});
|
||||
|
||||
utils.bindShortcut('ctrl+shift+tab', () => {
|
||||
utils.bindGlobalShortcut('ctrl+shift+tab', () => {
|
||||
const prevTab = tabRow.previousTabEl;
|
||||
|
||||
if (prevTab) {
|
||||
|
||||
Reference in New Issue
Block a user