Skip to content

Commit

Permalink
Fix type to search regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Sep 28, 2024
1 parent aff54ff commit 7d9d86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/gtfobins_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
// handle shortcuts
addEventListener('keydown', (event) => {
// focus search box on valid keydown (search as you type)
if (event.key.toLowerCase().match(/^[-_0-9a-z\/]$/) && !event.ctrlKey) {
if (event.key.toLowerCase().match(/^[-_0-9a-z\/^$]$/) && !(event.ctrlKey || event.altKey || event.metaKey)) {
searchField.focus();
} else if (event.key === 'Escape') {
// if the search box is already focused and empty scroll to top
Expand Down

0 comments on commit 7d9d86e

Please sign in to comment.