diff --git a/src/ts/component/widget/space.tsx b/src/ts/component/widget/space.tsx index b1d38404c6..7c5b168dae 100644 --- a/src/ts/component/widget/space.tsx +++ b/src/ts/component/widget/space.tsx @@ -12,6 +12,7 @@ const WidgetSpace = observer(forwardRef<{}, I.WidgetComponent>((props, ref) => { const isSpaceOwner = U.Space.isMyOwner(); const cn = [ 'body' ]; const cmd = keyboard.cmdSymbol(); + const alt = keyboard.altSymbol(); const buttons = [ space.chatId && U.Object.isAllowedChat() ? { id: 'chat', name: translate('commonMainChat') } : null, space.isShared ? { id: 'member', name: translate('commonMembers') } : null, @@ -269,7 +270,7 @@ const WidgetSpace = observer(forwardRef<{}, I.WidgetComponent>((props, ref) => {
- +
diff --git a/src/ts/lib/keyboard.ts b/src/ts/lib/keyboard.ts index 34fd2ce680..7993738bfb 100644 --- a/src/ts/lib/keyboard.ts +++ b/src/ts/lib/keyboard.ts @@ -237,6 +237,11 @@ class Keyboard { $('#button-header-relation').trigger('click'); }); + // Select type + this.shortcut(`${cmd}+alt+n`, e, () => { + $('#widget-space #widget-space-arrow').trigger('click'); + }); + // Switch dark/light mode this.shortcut(`${cmd}+shift+m`, e, () => { Action.themeSet(!theme ? 'dark' : '');