1
0
Fork 0
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:
Andrew Simachev 2025-06-05 16:19:36 +02:00
parent 902b4d0efd
commit caf4653079
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
2 changed files with 8 additions and 0 deletions

View file

@ -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: [] },
]
},

View file

@ -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()) {