Bug 806136 - Fix code logic bug in addLinkClickCallback method (notification.xml), r=IanN, a=IanN
authorFrank Wein <mcsmurf@mcsmurf.de>
Sun, 11 Nov 2012 14:14:34 +0100
changeset 13548 e88cf81c4b65ff67f2d28f97441e52a59258e535
parent 13547 1afba00dd59c3a49c4b6ce2e7dfcba8bbb351dee
child 13549 53faaeb4d17e9a41635c4116b61069f45d091a9d
push id2
push userraliiev@mozilla.com
push dateSun, 11 Nov 2012 23:39:33 +0000
reviewersIanN, IanN
bugs806136
Bug 806136 - Fix code logic bug in addLinkClickCallback method (notification.xml), r=IanN, a=IanN
suite/common/bindings/notification.xml
--- a/suite/common/bindings/notification.xml
+++ b/suite/common/bindings/notification.xml
@@ -567,17 +567,17 @@
                                         callback.apply(this, callbackArgs);
                                       }.bind(this),
                                       true);
 
             linkNode.addEventListener("keydown",
                                       function(aEvent) {
                                         if (!aEvent.isTrusted)
                                           return;
-                                        if (aEvent.keyCode == aEvent.DOM_VK_RETURN)
+                                        if (aEvent.keyCode != aEvent.DOM_VK_RETURN)
                                           return;
                                         aEvent.preventDefault();
                                         aEvent.stopPropagation();
                                         if (callbackArgs.length == 0)
                                           callbackArgs = [ aEvent ];
                                         callback.apply(this, callbackArgs);
                                       }.bind(this),
                                       true);