mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-16 20:22:18 +00:00
Add /
keyboard shortcut to focus the search field (#29921)
This commit is contained in:
parent
3f821e0d5e
commit
c386c36866
|
@ -107,7 +107,7 @@ class KeyboardShortcuts extends ImmutablePureComponent {
|
||||||
<td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>
|
<td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><kbd>s</kbd></td>
|
<td><kbd>s</kbd>, <kbd>/</kbd></td>
|
||||||
<td><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></td>
|
<td><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -89,7 +89,7 @@ const mapStateToProps = state => ({
|
||||||
const keyMap = {
|
const keyMap = {
|
||||||
help: '?',
|
help: '?',
|
||||||
new: 'n',
|
new: 'n',
|
||||||
search: 's',
|
search: ['s', '/'],
|
||||||
forceNew: 'option+n',
|
forceNew: 'option+n',
|
||||||
toggleComposeSpoilers: 'option+x',
|
toggleComposeSpoilers: 'option+x',
|
||||||
focusColumn: ['1', '2', '3', '4', '5', '6', '7', '8', '9'],
|
focusColumn: ['1', '2', '3', '4', '5', '6', '7', '8', '9'],
|
||||||
|
|
Loading…
Reference in a new issue