diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2024-11-18 19:48:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-18 19:48:13 +0000 |
| commit | 6113f4da7fa9839645525e57ff841db5bb00e475 (patch) | |
| tree | 2e0f1a0e29185d9ae1e4310c4def7b4b876400c2 /src/managers/KeybindManager.hpp | |
| parent | cc923ad031579a5d1ebe07269d5ecb291331ee51 (diff) | |
keybinds: allow repeating multiple binds (#8290)
Diffstat (limited to 'src/managers/KeybindManager.hpp')
| -rw-r--r-- | src/managers/KeybindManager.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/managers/KeybindManager.hpp b/src/managers/KeybindManager.hpp index 4a0af6e9..d375db0f 100644 --- a/src/managers/KeybindManager.hpp +++ b/src/managers/KeybindManager.hpp @@ -102,8 +102,6 @@ class CKeybindManager { std::unordered_map<std::string, std::function<SDispatchResult(std::string)>> m_mDispatchers; - wl_event_source* m_pActiveKeybindEventSource = nullptr; - bool m_bGroupsLocked = false; std::list<SKeybind> m_lKeybinds; @@ -121,8 +119,9 @@ class CKeybindManager { inline static std::string m_szCurrentSelectedSubmap = ""; - SKeybind * m_pActiveKeybind = nullptr, *m_pLastLongPressKeybind = nullptr; - SP<CEventLoopTimer> m_pLongPressTimer; + std::vector<SKeybind*> m_vActiveKeybinds; + SKeybind* m_pLastLongPressKeybind = nullptr; + SP<CEventLoopTimer> m_pLongPressTimer, m_pRepeatKeyTimer; uint32_t m_uTimeLastMs = 0; uint32_t m_uLastCode = 0; |
