diff --git a/src/json/shortcut.ts b/src/json/shortcut.ts index 237d7b61b3..834c158ca6 100644 --- a/src/json/shortcut.ts +++ b/src/json/shortcut.ts @@ -37,6 +37,7 @@ const getSections = () => { { id: 'copyPageLink', name: translate('commonCopyLink'), keys: [] }, { id: 'moveToBin', name: translate('popupShortcutMainBasics25'), keys: [] }, { id: 'addFavorite', name: translate('popupShortcutMainBasics26'), keys: [] }, + { id: 'logout', name: translate('commonLogout'), keys: [] }, ] }, diff --git a/src/ts/lib/keyboard.ts b/src/ts/lib/keyboard.ts index a375032e97..7fd8512bdd 100644 --- a/src/ts/lib/keyboard.ts +++ b/src/ts/lib/keyboard.ts @@ -314,6 +314,13 @@ class Keyboard { U.Object.openRoute({ id: 'spaceIndex', layout: I.ObjectLayout.Settings }); }); + // Logout + this.shortcut('logout', e, () => { + e.preventDefault(); + + S.Popup.open('logout', {}); + }); + if (canWrite) { // Create new page if (!S.Popup.isOpen('search') && !this.isMainSet()) {