From add020b3f5668fb0699b7de2d28ab8f28221c651 Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Tue, 14 Oct 2008 18:08:53 -0700 Subject: [PATCH] keyboard.js: only check if string commands are prefix commands Without this check, bindings directly to functions did not work properly. --- modules/keyboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/keyboard.js b/modules/keyboard.js index 89ea360..7d2c6cf 100644 --- a/modules/keyboard.js +++ b/modules/keyboard.js @@ -634,7 +634,9 @@ function key_press_handler(true_event) done = false; } else if (binding.command) { call_interactively(ctx, binding.command); - if (interactive_commands.get(binding.command).prefix) { + if (typeof(binding.command) == "string" && + interactive_commands.get(binding.command).prefix) { + state.active_keymap = null; show_partial_key_sequence(window, state, ctx); done = false; -- 2.11.4.GIT