Merge branch 'search-hotkey' into 'develop'

Add `/` as a hotkey for search

See merge request soapbox-pub/soapbox!2517
This commit is contained in:
marcin mikołajczak
2023-05-20 05:36:28 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ const HotkeysModal: React.FC<IHotkeysModal> = ({ onClose }) => {
<TableCell><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></TableCell>
</tr>
<tr>
<TableCell><Hotkey>s</Hotkey></TableCell>
<TableCell><Hotkey>s</Hotkey>, <Hotkey>/</Hotkey></TableCell>
<TableCell><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></TableCell>
</tr>
<tr>

View File

@ -156,7 +156,7 @@ const EmptyPage = HomePage;
const keyMap = {
help: '?',
new: 'n',
search: 's',
search: ['s', '/'],
forceNew: 'option+n',
reply: 'r',
favourite: 'f',