From e76ddf79bc9dee7290541b7274a2b997efcbc343 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 12 Apr 2024 11:42:12 +0200 Subject: [PATCH] [Glitch] Add `/` keyboard shortcut to focus the search field Port c386c36866881ac3bd3d0b156264231f7b4c8053 to glitch-soc Signed-off-by: Claire --- .../flavours/glitch/features/keyboard_shortcuts/index.jsx | 2 +- app/javascript/flavours/glitch/features/ui/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/features/keyboard_shortcuts/index.jsx b/app/javascript/flavours/glitch/features/keyboard_shortcuts/index.jsx index 858d760c24..bc435fbfb1 100644 --- a/app/javascript/flavours/glitch/features/keyboard_shortcuts/index.jsx +++ b/app/javascript/flavours/glitch/features/keyboard_shortcuts/index.jsx @@ -123,7 +123,7 @@ class KeyboardShortcuts extends ImmutablePureComponent { - s + s, / diff --git a/app/javascript/flavours/glitch/features/ui/index.jsx b/app/javascript/flavours/glitch/features/ui/index.jsx index 05855f89d7..c257b8cdf5 100644 --- a/app/javascript/flavours/glitch/features/ui/index.jsx +++ b/app/javascript/flavours/glitch/features/ui/index.jsx @@ -96,7 +96,7 @@ const mapStateToProps = state => ({ const keyMap = { help: '?', new: 'n', - search: 's', + search: ['s', '/'], forceNew: 'option+n', toggleComposeSpoilers: 'option+x', focusColumn: ['1', '2', '3', '4', '5', '6', '7', '8', '9'],