mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +01:00
add ZQ mapping only when extension has the "session" feature
This commit is contained in:
@@ -105,9 +105,12 @@ const vimperator = (function () //{{{
|
|||||||
"Open help window",
|
"Open help window",
|
||||||
function () { vimperator.help(); });
|
function () { vimperator.help(); });
|
||||||
|
|
||||||
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZQ"],
|
if (vimperator.has("session"))
|
||||||
"Quit and don't save the session",
|
{
|
||||||
function () { vimperator.quit(false); });
|
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZQ"],
|
||||||
|
"Quit and don't save the session",
|
||||||
|
function () { vimperator.quit(false); });
|
||||||
|
}
|
||||||
|
|
||||||
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZZ"],
|
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZZ"],
|
||||||
"Quit and save the session",
|
"Quit and save the session",
|
||||||
|
|||||||
Reference in New Issue
Block a user