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 and shilman committed May 3, 2023
1 parent 9e11042 commit 546d8bc
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 546d8bc

Please sign in to comment.