summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-09-19 11:55:55 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-09-19 11:55:55 +0100
commitdb8c12fd2a9ccb3d44445e4539bc10a0f4e5c7e6 (patch)
treebae989bc5627dc70b69517ef721674f4ace36590 /src/input_handler.cc
parent96b6b1b6470a48bc374e76b0d26de1edf8f734f1 (diff)
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.
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc6
1 files 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"