1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 06:05:45 +01:00

Use real key bindings in MOW mode, and also restore the strange key passing behavior of yore. Closes issue #217.

This commit is contained in:
Kris Maglione
2010-12-28 21:55:30 -05:00
parent cd21743661
commit ca4b3a03c9
6 changed files with 100 additions and 135 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2008-2020 by Kris Maglione <maglione.k at Gmail>
// Copyright (c) 2008-2010 by Kris Maglione <maglione.k at Gmail>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.

View File

@@ -997,8 +997,12 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
for (let [elem, xml, attr] in iterator) {
if (elem = doc.getElementById(elem)) {
let node = util.xmlToDom(xml, doc, obj.objects);
for (let n in array.iterValues(node.childNodes))
doc.dactylOverlayElements.push(n);
if (!(node instanceof Ci.nsIDOMDocumentFragment))
doc.dactylOverlayElements.push(node);
else
for (let n in array.iterValues(node.childNodes))
doc.dactylOverlayElements.push(n);
fn(elem, node);
for each (let attr in attr || []) // FIXME: Cleanup...
if (attr.name() != "highlight")