diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-07-05 19:21:15 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-07-05 20:08:13 +0100 |
| commit | 439f16892828177dfea19f73f2e588071ed075e0 (patch) | |
| tree | 503360a78c49306e3a56b7aa5d846b4bea2a409f /src/input_handler.cc | |
| parent | 7f345db3ccfdb4d9f7efea4c6852058c5c8c62a0 (diff) | |
Use named keys for Return and Tab instead of <c-m> and <c-i>
Fixes #722
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index dacb29a2..772be7d9 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -515,7 +515,7 @@ public: return false; }; - if (key == ctrl('m')) + if (key == Key::Return) { if (context().has_client()) context().client().menu_hide(); @@ -543,7 +543,7 @@ public: m_callback(selected, MenuEvent::Abort, context()); } } - else if (key == Key::Down or key == ctrl('i') or + else if (key == Key::Down or key == Key::Tab or key == ctrl('n') or (not m_edit_filter and key == 'j')) { auto it = std::find_if(m_selected+1, m_choices.end(), match_filter); @@ -665,7 +665,7 @@ public: const String& line = m_line_editor.line(); bool showcompl = false; - if (key == ctrl('m')) // enter + if (key == Key::Return) { if (not context().history_disabled()) history_push(history, line); @@ -761,7 +761,7 @@ public: showcompl = true; } } - else if (key == ctrl('i') or key == Key::BackTab) // tab completion + else if (key == Key::Tab or key == Key::BackTab) // tab completion { const bool reverse = (key == Key::BackTab); CandidateList& candidates = m_completions.candidates; |
