X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fmodes.js;fp=common%2Fcontent%2Fmodes.js;h=127fa95a9f89b716c4e735c556e1bc9215408813;hb=5ebd29f56d17f62011cdd596b1d351947ee534ff;hp=50b2ee5b16f4570025d76636cb7bf1ebc74f70ca;hpb=9044153cb63835e39b9de8ec4ade237c03e3888a;p=dactyl.git diff --git a/common/content/modes.js b/common/content/modes.js index 50b2ee5..127fa95 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -119,7 +119,7 @@ var Modes = Module("modes", { onKeyPress: function (events) { if (modes.main == modes.QUOTE) modes.pop(); } }); this.addMode("IGNORE", { hidden: true }, { - onKeyPress: function (events) Events.KILL, + onKeyPress: function (events) false, bases: [], passthrough: true }); @@ -299,7 +299,7 @@ var Modes = Module("modes", { return; } - params = params || this.getMode(mainMode || this.main).params; + params = params || Object.create(this.getMode(mainMode || this.main).params); if (!stack && mainMode != null && this._modeStack.length > 1) this.reset();