Index: chrome/content/ui/filters-search.js |
=================================================================== |
--- a/chrome/content/ui/filters-search.js |
+++ b/chrome/content/ui/filters-search.js |
@@ -253,7 +253,19 @@ |
return; |
if (!("_ABPHandler" in listener)) |
- listener._ABPHandler = (event) => listener.receiveMessage(this._messageFromEvent(event)); |
+ { |
+ listener._ABPHandler = (event) => { |
+ if (event.type == "keypress") |
+ { |
+ let key = event.charCode ? String.fromCharCode(event.charCode) : null; |
+ // Firefox manually triggers FAYT when ' or / is pressed |
+ // so we need to capture those |
+ if (key == "'" || key == "/") |
+ return; |
+ } |
Wladimir Palant
2015/10/05 14:19:18
Please see https://codereview.adblockplus.org/2932
|
+ listener.receiveMessage(this._messageFromEvent(event)); |
+ }; |
+ } |
E("filtersTree").addEventListener(this._messageMap[message], listener._ABPHandler, false); |
}, |