Add g+e keyboard shortcut for /explore (trending) (#38014)
This commit is contained in:
1 parent
f953d40289
commit
87004ddb96
5 files changed
+17
No files matched your search
@@ -50,6 +50,9 @@ const hotkeyTest: Story['play'] = async ({ canvas, userEvent }) => {
|
||||
await userEvent.keyboard('gh');
|
||||
await confirmHotkey('goToHome');
|
||||
|
||||
await userEvent.keyboard('ge');
|
||||
await confirmHotkey('goToExplore');
|
||||
|
||||
await userEvent.keyboard('gn');
|
||||
await confirmHotkey('goToNotifications');
|
||||
|
||||
@@ -106,6 +109,9 @@ export const Default = {
|
||||
goToHome: () => {
|
||||
setMatchedHotkey('goToHome');
|
||||
},
|
||||
goToExplore: () => {
|
||||
setMatchedHotkey('goToExplore');
|
||||
},
|
||||
goToNotifications: () => {
|
||||
setMatchedHotkey('goToNotifications');
|
||||
},
|
||||
|
||||
@@ -118,6 +118,7 @@ const hotkeyMatcherMap = {
|
||||
openMedia: just('e'),
|
||||
onTranslate: just('t'),
|
||||
goToHome: sequence('g', 'h'),
|
||||
goToExplore: sequence('g', 'e'),
|
||||
goToNotifications: sequence('g', 'n'),
|
||||
goToLocal: sequence('g', 'l'),
|
||||
goToFederated: sequence('g', 't'),
|
||||
|
||||
Reference in new issue
Block a user