1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 20:14:11 +01:00

Merge changes from bootstrapped.

This commit is contained in:
Kris Maglione
2010-12-27 09:38:05 -05:00
parent 47167e769e
commit 7a0f693ad4
3 changed files with 11 additions and 12 deletions

View File

@@ -408,7 +408,7 @@ var CommandLine = Module("commandline", {
set quiet(val) {
this._quiet = val;
["commandbar", "statusbar"].forEach(function (nodeSet) {
Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) {
Array.forEach(this.widgets[nodeSet].commandline.children, function (node) {
node.style.opacity = this._quiet || this._silent ? "0" : "";
}, this);
}, this);
@@ -828,11 +828,10 @@ var CommandLine = Module("commandline", {
let command = this.command;
if (event.type == "blur") {
// prevent losing focus, there should be a better way, but it just didn't work otherwise
this.timeout(function () {
if (this.commandVisible && event.originalTarget == this.widgets.active.command.inputField)
dactyl.focus(this.widgets.active.command.inputField);
}, 0);
});
}
else if (event.type == "focus") {
if (!this.commandVisible && event.target == this.widgets.active.command.inputField) {

View File

@@ -241,15 +241,15 @@ var Events = Module("events", {
* @returns {boolean}
*/
feedkeys: function (keys, noremap, quiet, mode) {
let wasFeeding = this.feedingKeys;
this.feedingKeys = true;
this.duringFeed = this.duringFeed || [];
let wasQuiet = commandline.quiet;
if (quiet)
commandline.quiet = quiet;
try {
var wasFeeding = this.feedingKeys;
this.feedingKeys = true;
this.duringFeed = this.duringFeed || [];
var wasQuiet = commandline.quiet;
if (quiet)
commandline.quiet = quiet;
util.threadYield(1, true);
for (let [, evt_obj] in Iterator(events.fromString(keys))) {

View File

@@ -484,7 +484,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
*/
dumpStack: function dumpStack(msg, frames) {
let stack = util.stackLines(Error().stack);
stack = stack.slice(2, 2 + (frames || 0)).join("\n");
stack = stack.slice(2, 2 + (frames || stack.length)).join("\n");
util.dump((arguments.length == 0 ? "Stack" : msg) + "\n" + stack + "\n");
},