Skip to content

Commit

Permalink
ignore key combination
Browse files Browse the repository at this point in the history
  • Loading branch information
reorx committed Oct 8, 2022
1 parent 6d70b3d commit 288d2c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ function updateKeyword(key) {

function handleKeyPress(e) {
var key = e.keyCode || e.which;
if (e.ctrlKey || e.metaKey) {
// ignore key combination
return
}
if (key == 9 || key == 13) { // Tab to switch and Enter to open
// e.preventDefault();
// e.stopPropagation();
Expand Down

0 comments on commit 288d2c8

Please sign in to comment.