1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

LibLine: Cycle backward through suggestions using Shift+Tab

This commit is contained in:
Linus Groh 2020-04-11 19:35:39 +01:00 committed by Andreas Kling
parent f809231718
commit c106451daf
2 changed files with 40 additions and 3 deletions

View file

@ -200,6 +200,12 @@ private:
size_t m_next_suggestion_index { 0 };
size_t m_next_suggestion_invariant_offset { 0 };
enum class TabDirection {
Forward,
Backward,
};
TabDirection m_tab_direction { TabDirection::Forward };
HashMap<char, NonnullOwnPtr<KeyCallback>> m_key_callbacks;
// TODO: handle signals internally