Skip to content

Commit

Permalink
Merge pull request #22073 from filiptammergard/shortcut
Browse files Browse the repository at this point in the history
fix: make sure shift + 7 shortcut to focus search field works
  • Loading branch information
valentinpalkovic authored Apr 25, 2023
2 parents 7bd6976 + 1c7a323 commit d95c620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/manager-api/src/lib/shortcut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const shortcutMatchesShortcut = (
shortcut: API_KeyCollection
): boolean => {
if (!inputShortcut || !shortcut) return false;
if (inputShortcut.join('') === 'shift/') inputShortcut.shift(); // shift is optional for `/`
if (inputShortcut.join('').startsWith('shift/')) inputShortcut.shift(); // shift is optional for `/`
if (inputShortcut.length !== shortcut.length) return false;
return !inputShortcut.find((input, i) =>
Array.isArray(input) ? !input.includes(shortcut[i]) : input !== shortcut[i]
Expand Down

0 comments on commit d95c620

Please sign in to comment.