mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-29 23:23:33 +02: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");
|
transferable.addDataFlavor("text/unicode");
|
||||||
|
|
||||||
let source = clipboard[getClipboard || !clipboard.supportsSelectionClipboard() ?
|
let source = clipboard[getClipboard || !clipboard.supportsSelectionClipboard() ?
|
||||||
"kSelectionClipboard" : "kGlobalClipboard"];
|
"kGlobalClipboard" : "kSelectionClipboard"];
|
||||||
clipboard.getData(transferable, source);
|
clipboard.getData(transferable, source);
|
||||||
|
|
||||||
let str = {}, len = {};
|
let str = {}, len = {};
|
||||||
|
|||||||
@@ -347,7 +347,7 @@ var JavaScript = Module("javascript", {
|
|||||||
compl = function (context, args, recurse) {
|
compl = function (context, args, recurse) {
|
||||||
|
|
||||||
context.process[1] = function highlight(item, v)
|
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:
|
// Sort in a logical fashion for object keys:
|
||||||
// Numbers are sorted as numbers, rather than strings, and appear first.
|
// Numbers are sorted as numbers, rather than strings, and appear first.
|
||||||
|
|||||||
Reference in New Issue
Block a user