summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-09-08 18:46:27 -0400
committerKris Maglione <maglione.k@gmail.com>2011-09-08 18:46:27 -0400
commitf6dd7ba2ce29beb0559f60bfcffc70b38a266e99 (patch)
tree4b8b4190095ec46cf75f5684ca52f043bdc0ce4c
parentde0ad598e5df1b683bdf7d9d256f9372416a6c32 (diff)
downloadpentadactyl-f6dd7ba2ce29beb0559f60bfcffc70b38a266e99.tar.gz
canonicalKeys("<S-a>") → "A".
-rw-r--r--common/content/events.js1
-rw-r--r--common/modules/dom.jsm9
2 files changed, 1 insertions, 9 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 722952de..f67f0eb2 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -820,6 +820,7 @@ var Events = Module("events", {
if (evt_obj.shiftKey)
keyname = keyname.toUpperCase();
+ evt_obj.dactylShift = evt_obj.shiftKey && keyname.toUpperCase() == keyname.toLowerCase();
evt_obj.charCode = keyname.charCodeAt(0);
evt_obj._keyCode = this._key_code[keyname.toLowerCase()];
}
diff --git a/common/modules/dom.jsm b/common/modules/dom.jsm
index f1601511..06864b77 100644
--- a/common/modules/dom.jsm
+++ b/common/modules/dom.jsm
@@ -770,15 +770,6 @@ var DOM = Class("DOM", {
continue;
force = Math.round(isect.width - rect.width) || Math.round(isect.height - rect.height);
- let vp = parent.viewport;
- if (force)
- util.dump(vp,
- rect.left - vp.left,
- rect.right - vp.right,
- rect.top - vp.top,
- rect.bottom - vp.bottom,
- isect.width - rect.width, isect.height - rect.height,
- parent[0]);
if (force)
break;
}