fx-compat: Scaffold: Fix type-to-find not receiving ' '

This commit is contained in:
Abe Jellinek 2022-11-01 16:05:17 -04:00
parent 1aebad3c19
commit ac8db7a376

View file

@ -37,8 +37,8 @@ var Scaffold_Load = new function() {
window.close();
});
listbox.addEventListener('keydown', (e) => {
if (e.key == ' ') {
listbox.addEventListener('keypress', (e) => {
if (e.key == ' ' && e.target == listbox) {
e.preventDefault();
}
});