mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Avoid search auto-focus for modifiers
This commit is contained in:
parent
af346441f2
commit
9bc82744fd
@ -57,7 +57,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
addEventListener('keydown', function (event) {
|
addEventListener('keydown', function (event) {
|
||||||
if (event.key.toLowerCase().match(/^[\/a-z]$/)) {
|
if (event.key.toLowerCase().match(/^[\/a-z]$/) &&
|
||||||
|
!(event.ctrlKey || event.altKey || event.metaKey)) {
|
||||||
searchBox.focus();
|
searchBox.focus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user