Skip to content

Commit

Permalink
chore(shortcuts): add suggestions to the ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed Jun 12, 2024
1 parent 0abdf7a commit b13e41d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/static/js/player_shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const shortcuts = {
* @param {KeyboardEvent} e
*/
document.addEventListener("keyup", (e) => {
if (document.activeElement.tagName === "INPUT") {
if (
document.activeElement.tagName === "INPUT" ||
document.activeElement.id.startsWith("search-suggestion")
) {
return;
}
const action = shortcuts[e.key];
Expand Down

0 comments on commit b13e41d

Please sign in to comment.