mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-19 16:27:58 +01:00
Different 'passunknown' default for now.
--HG-- extra : rebase_source : a717735081e0b6a7e4f9e0254dcd1e6bac0c66c2
This commit is contained in:
@@ -737,7 +737,7 @@ var CommandLine = Module("commandline", {
|
||||
let single = flags & (this.FORCE_SINGLELINE | this.DISALLOW_MULTILINE);
|
||||
let action = this._echoLine;
|
||||
|
||||
if ((flags & this.FORCE_MULTILINE) || (/\n/.test(data) || !isString(data)) && !(flags & this.FORCE_SINGLELINE))
|
||||
if ((flags & this.FORCE_MULTILINE) || (/\n/.test(data) || !isinstance(data, [_, "String"])) && !(flags & this.FORCE_SINGLELINE))
|
||||
action = mow.closure.echo;
|
||||
|
||||
if (single)
|
||||
|
||||
@@ -656,7 +656,8 @@ var Editor = Module("editor", {
|
||||
// Ugh.
|
||||
mappings.add([modes.INPUT, modes.CARET],
|
||||
["<*-CR>", "<*-BS>", "<*-Del>", "<*-Left>", "<*-Right>", "<*-Up>", "<*-Down>",
|
||||
"<*-Home>", "<*-End>", "<*-PageUp>", "<*-PageDown>"],
|
||||
"<*-Home>", "<*-End>", "<*-PageUp>", "<*-PageDown>",
|
||||
"<M-c>", "<M-v>"],
|
||||
"Handled by " + config.host,
|
||||
function () Events.PASS);
|
||||
|
||||
|
||||
@@ -554,7 +554,7 @@ var Modes = Module("modes", {
|
||||
options: function initOptions() {
|
||||
options.add(["passunknown"],
|
||||
"Pass through unknown keys in these modes",
|
||||
"stringlist", "",
|
||||
"stringlist", "!text_edit,!input,base",
|
||||
{
|
||||
completer: function completer(context, extra) {
|
||||
if (extra.value && context.filter[0] == "!")
|
||||
|
||||
Reference in New Issue
Block a user