[Pkg-mozext-commits] [requestpolicy] 229/257: [fix] keyboard shortcut: "oncommand" is required

David Prévot taffit at moszumanska.debian.org
Thu Jan 28 03:20:16 UTC 2016


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

taffit pushed a commit to branch master
in repository requestpolicy.

commit 15a58dd070e15d9348e6033de03f6fc13a1dafb5
Author: Martin Kimmerle <dev at 256k.de>
Date:   Mon Dec 21 06:00:47 2015 +0100

    [fix] keyboard shortcut: "oncommand" is required
---
 src/content/ui/xul-trees.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/content/ui/xul-trees.js b/src/content/ui/xul-trees.js
index 87abde1..48f7bdb 100644
--- a/src/content/ui/xul-trees.js
+++ b/src/content/ui/xul-trees.js
@@ -99,8 +99,11 @@ exports.mainTree = [
     children: [
       {
         tag: "key",
+        // "oncommand" (or "command") is required! See
+        // https://stackoverflow.com/questions/16779316/how-to-set-an-xul-key-dynamically-and-securely/16786770#16786770
         attributes: {key: "r",
-                     modifiers: "accel alt"},
+                     modifiers: "accel alt",
+                     oncommand: "void(0);"},
         events: {command: ["overlay", "openMenu"]}
       }
     ]

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



More information about the Pkg-mozext-commits mailing list