1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 23:47:58 +01:00

Be less prudent with <C-t>.

This commit is contained in:
Kris Maglione
2011-08-16 21:52:26 -04:00
parent ee06a63dba
commit 5144c612ad

View File

@@ -58,7 +58,7 @@ var Tabs = Module("tabs", {
"mappings.executed": function mappings_executed() {
if (this._mappingCount && !--this._mappingCount)
dactyl.forceTarget = this._originalTarget;
dactyl.forceTarget = null;
},
},
@@ -959,8 +959,7 @@ var Tabs = Module("tabs", {
mappings.add([modes.COMMAND], ["<C-t>", "<new-tab-next>"],
"Execute the next mapping in a new tab",
function ({ count }) {
tabs._mappingCount += (count || 1) + 1;
tabs._originalTarget = dactyl.forceTarget;
tabs._mappingCount = (count || 1) + 1;
dactyl.forceTarget = dactyl.NEW_TAB;
},
{ count: true });