mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 00:27:57 +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",
|
||||
function () { vimperator.help(); });
|
||||
|
||||
vimperator.mappings.add([vimperator.modes.NORMAL], ["ZQ"],
|
||||
"Quit and don't save the session",
|
||||
function () { vimperator.quit(false); });
|
||||
if (vimperator.has("session"))
|
||||
{
|
||||
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"],
|
||||
"Quit and save the session",
|
||||
|
||||
Reference in New Issue
Block a user