summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2009-06-08 22:43:03 +1000
committerDoug Kearns <dougkearns@gmail.com>2009-06-08 23:37:07 +1000
commit32106364f5147f9e7a8695745310aa4eefd23fbb (patch)
tree5f9dda77308c7e09b5d42c288a2fab3a22b2da11 /common/content/events.js
parentf37a0a37b3c930b71cc3a63bc6a9c3cd6d103962 (diff)
downloadpentadactyl-32106364f5147f9e7a8695745310aa4eefd23fbb.tar.gz
Formatting fixes.
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 560ebc78..84b98d6d 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -438,7 +438,8 @@ function Events() //{{{
const key_code = {};
for (let [k, v] in Iterator(KeyEvent))
- if (/^DOM_VK_(?![A-Z0-9]$)/.test(k)) {
+ if (/^DOM_VK_(?![A-Z0-9]$)/.test(k))
+ {
k = k.substr(7).toLowerCase();
let names = [k.replace(/(^|_)(.)/g, function (m, n1, n2) n2.toUpperCase())
.replace(/^NUMPAD/, "k")];
@@ -450,7 +451,7 @@ function Events() //{{{
}
// HACK: as firefox does not include an event for <, we must add this in manually.
- if (! ("<" in key_code))
+ if (!("<" in key_code))
{
key_code["<"] = 60;
key_code["lt"] = 60;
@@ -944,11 +945,11 @@ function Events() //{{{
Mouse: {
type: type,
bubbles: true, cancelable: true,
- view: doc.defaultView,
+ view: doc.defaultView,
detail: 1,
screenX: 0, screenY: 0,
- clientX: 0, clientY: 0,
- ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
+ clientX: 0, clientY: 0,
+ ctrlKey: false, altKey: false, shiftKey: false, metaKey: false,
button: 0,
relatedTarget: null
}