diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-07-22 18:39:04 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-07-22 18:39:04 +0100 |
| commit | bc48d9260da1785008d7b20288f9e23f28f7a607 (patch) | |
| tree | 8ade7b9860f243d22a9ce726f0f1ed3a375c8e10 /src/input_handler.cc | |
| parent | 3c021672d213d8b541f67d1881b5d17b33e6548d (diff) | |
Fix Menu use of j/k keys when editing filter
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 6898bd45..5ee5f8cb 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -279,7 +279,7 @@ public: } } else if (key == Key::Down or key == ctrl('i') or - key == ctrl('n') or key == 'j') + key == ctrl('n') or (not m_edit_filter and key == 'j')) { auto it = std::find_if(m_selected+1, m_choices.end(), match_filter); if (it == m_choices.end()) @@ -287,7 +287,7 @@ public: select(it); } else if (key == Key::Up or key == Key::BackTab or - key == ctrl('p') or key == 'k') + key == ctrl('p') or (not m_edit_filter and key == 'k')) { ChoiceList::const_reverse_iterator selected(m_selected+1); auto it = std::find_if(selected+1, m_choices.rend(), match_filter); |
