mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-20 18:38:32 +01:00
parent
9ae73d6a3e
commit
ce3699a03c
@ -86,13 +86,14 @@
|
|||||||
actions.appendChild(search);
|
actions.appendChild(search);
|
||||||
search.focus();
|
search.focus();
|
||||||
|
|
||||||
search.addEventListener("keyup", function(event){
|
search.addEventListener("keypress", function(event){
|
||||||
if ([10, 13].indexOf(event.keyCode) !== -1){
|
if ([10, 13].indexOf(event.keyCode) !== -1){
|
||||||
window.open(browser.extension.getURL(
|
window.open(browser.extension.getURL(
|
||||||
"options/options.html" +
|
"options/options.html" +
|
||||||
"?search=" +
|
"?search=" +
|
||||||
encodeURIComponent(this.value)
|
encodeURIComponent(this.value)
|
||||||
));
|
));
|
||||||
|
window.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user