mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-06 14:35:46 +01:00
Fix reversed clipboard roles in dactyl.clipboardRead.
This commit is contained in:
@@ -249,7 +249,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
transferable.addDataFlavor("text/unicode");
|
||||
|
||||
let source = clipboard[getClipboard || !clipboard.supportsSelectionClipboard() ?
|
||||
"kSelectionClipboard" : "kGlobalClipboard"];
|
||||
"kGlobalClipboard" : "kSelectionClipboard"];
|
||||
clipboard.getData(transferable, source);
|
||||
|
||||
let str = {}, len = {};
|
||||
|
||||
@@ -347,7 +347,7 @@ var JavaScript = Module("javascript", {
|
||||
compl = function (context, args, recurse) {
|
||||
|
||||
context.process[1] = function highlight(item, v)
|
||||
template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true);
|
||||
template.highlight(typeof v == "xml" ? new String(v.toXMLString()) : v, true, 200);
|
||||
|
||||
// Sort in a logical fashion for object keys:
|
||||
// Numbers are sorted as numbers, rather than strings, and appear first.
|
||||
|
||||
Reference in New Issue
Block a user