Skip to content

Commit

Permalink
Make search event listener only trigger with “K”/“k” (pydata#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep authored and ivanov committed Jun 4, 2024
1 parent 8a1b08c commit 3607f9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ var addEventListenerForSearchKeyboard = () => {
? event.metaKey && !event.ctrlKey
: !event.metaKey && event.ctrlKey) &&
// Case-insensitive so the shortcut still works with caps lock
/k/i.test(event.key)
/^k$/i.test(event.key)
) {
event.preventDefault();
toggleSearchField();
Expand Down

0 comments on commit 3607f9c

Please sign in to comment.