mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
9ae73d6a3e
commit
ce3699a03c
1 changed files with 2 additions and 1 deletions
|
@ -86,13 +86,14 @@
|
|||
actions.appendChild(search);
|
||||
search.focus();
|
||||
|
||||
search.addEventListener("keyup", function(event){
|
||||
search.addEventListener("keypress", function(event){
|
||||
if ([10, 13].indexOf(event.keyCode) !== -1){
|
||||
window.open(browser.extension.getURL(
|
||||
"options/options.html" +
|
||||
"?search=" +
|
||||
encodeURIComponent(this.value)
|
||||
));
|
||||
window.close();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue