Bug 759017 - whitelisted key events does not contain correct keyCode information. r=mounir
authorVivien Nicolas <21@vingtetun.org>
Thu, 31 May 2012 16:40:33 +0200
changeset 97668 a35f9c1fef546f1b6203577a7091e1dc88807827
parent 97667 0b607361839a316c371001f5c91d649197ea9d98
child 97669 f16847bdf08665441832bafd04fcd81ca70184c9
push idunknown
push userunknown
push dateunknown
reviewersmounir
bugs759017
milestone15.0a1
Bug 759017 - whitelisted key events does not contain correct keyCode information. r=mounir
dom/base/BrowserElementChild.js
--- a/dom/base/BrowserElementChild.js
+++ b/dom/base/BrowserElementChild.js
@@ -164,17 +164,17 @@ BrowserElementChild.prototype = {
       docShell.isActive = data.json.visible;
     }
   },
 
   _keyEventHandler: function(e) {
     if (whitelistedEvents.indexOf(e.keyCode) != -1 && !e.defaultPrevented) {
       sendAsyncMsg('keyevent', {
         type: e.type,
-        code: e.keyCode,
+        keyCode: e.keyCode,
         charCode: e.charCode,
       });
     }
   },
 
   // The docShell keeps a weak reference to the progress listener, so we need
   // to keep a strong ref to it ourselves.
   _progressListener: {