mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 05:38:00 +01:00
Be less prudent with <C-t>.
This commit is contained in:
@@ -58,7 +58,7 @@ var Tabs = Module("tabs", {
|
|||||||
|
|
||||||
"mappings.executed": function mappings_executed() {
|
"mappings.executed": function mappings_executed() {
|
||||||
if (this._mappingCount && !--this._mappingCount)
|
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>"],
|
mappings.add([modes.COMMAND], ["<C-t>", "<new-tab-next>"],
|
||||||
"Execute the next mapping in a new tab",
|
"Execute the next mapping in a new tab",
|
||||||
function ({ count }) {
|
function ({ count }) {
|
||||||
tabs._mappingCount += (count || 1) + 1;
|
tabs._mappingCount = (count || 1) + 1;
|
||||||
tabs._originalTarget = dactyl.forceTarget;
|
|
||||||
dactyl.forceTarget = dactyl.NEW_TAB;
|
dactyl.forceTarget = dactyl.NEW_TAB;
|
||||||
},
|
},
|
||||||
{ count: true });
|
{ count: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user