[Pkg-mozext-commits] [adblock-plus] 452/464: Issue 716 - Filter position cannot be changed using Ctrl-Up/Down keys

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:43 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 2af3c616ec3d6f173329babfc2e66fc549786c3f
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Tue Jul 15 14:14:36 2014 +0200

    Issue 716 - Filter position cannot be changed using Ctrl-Up/Down keys
    
    --HG--
    extra : rebase_source : 473fb43b1e6f09a0a4513e4f2dbf5bc50d2ec47e
---
 chrome/content/ui/filters-filteractions.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/chrome/content/ui/filters-filteractions.js b/chrome/content/ui/filters-filteractions.js
index 5512fda..deb2c07 100644
--- a/chrome/content/ui/filters-filteractions.js
+++ b/chrome/content/ui/filters-filteractions.js
@@ -26,11 +26,7 @@ var FilterActions =
    */
   init: function()
   {
-    let me = this;
-    this.treeElement.parentNode.addEventListener("keypress", function(event)
-    {
-      me.keyPress(event);
-    }, true);
+    this.treeElement.parentNode.addEventListener("keydown", this.keyDown.bind(this), true);
     this.treeElement.view = FilterView;
 
     // Work around https://bugzilla.mozilla.org/show_bug.cgi?id=777832, don't
@@ -373,7 +369,7 @@ var FilterActions =
   /**
    * Called whenever a key is pressed on the list.
    */
-  keyPress: function(/**Event*/ event)
+  keyDown: function(/**Event*/ event)
   {
     if (event.target != E("filtersTree"))
       return;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list