From db8c12fd2a9ccb3d44445e4539bc10a0f4e5c7e6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 19 Sep 2015 11:55:55 +0100 Subject: [PATCH] Be tolerant to modifiers in bindings should be accepted, as it is cumbersome to unpress control before hitting f in that case. --- src/input_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/input_handler.cc b/src/input_handler.cc index 9d471db3..04789f73 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -1054,11 +1054,11 @@ public: { on_next_key_with_autoinfo(context(), KeymapMode::None, [this](Key key, Context&) { - if (key == 'f') + if (key.key == 'f') m_completer.explicit_file_complete(); - if (key == 'w') + if (key.key == 'w') m_completer.explicit_word_complete(); - if (key == 'l') + if (key.key == 'l') m_completer.explicit_line_complete(); }, "Complete", " Enter completion type:\n"