Be tolerant to modifiers in <c-x> bindings

<c-x><c-f> should be accepted, as it is cumbersome to unpress
control before hitting f in that case.
This commit is contained in:
Maxime Coste 2015-09-19 11:55:55 +01:00
parent 96b6b1b647
commit db8c12fd2a

View File

@ -1054,11 +1054,11 @@ public:
{ {
on_next_key_with_autoinfo(context(), KeymapMode::None, on_next_key_with_autoinfo(context(), KeymapMode::None,
[this](Key key, Context&) { [this](Key key, Context&) {
if (key == 'f') if (key.key == 'f')
m_completer.explicit_file_complete(); m_completer.explicit_file_complete();
if (key == 'w') if (key.key == 'w')
m_completer.explicit_word_complete(); m_completer.explicit_word_complete();
if (key == 'l') if (key.key == 'l')
m_completer.explicit_line_complete(); m_completer.explicit_line_complete();
}, "Complete", }, "Complete",
" Enter completion type:\n" " Enter completion type:\n"