mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-07 21:47:02 +09:00
JS-6293: logout shortcut
This commit is contained in:
parent
902b4d0efd
commit
caf4653079
2 changed files with 8 additions and 0 deletions
|
@ -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: [] },
|
||||
]
|
||||
},
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue