diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2016-03-06 13:23:37 +0100 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2016-03-06 13:23:37 +0100 |
commit | 46d1480ec18cc0552fab67dcb20923e362145810 (patch) | |
tree | f9636c1ee867973ba17a1f229e579b873daf4f59 | |
parent | 38cb247130a8fd73f36e3d1d49477a19669caaf9 (diff) | |
parent | 99f576c2affa3687520cda0e74143ad36f246d6d (diff) |
Merge pull request #9260 from koying/fixeatenkey16.1rc1-Jarvis
FIX: [longpress] do not eat keypress after a longpress
-rw-r--r-- | xbmc/input/InputManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/input/InputManager.cpp b/xbmc/input/InputManager.cpp index 582ab35b2b..1e21e7bf7a 100644 --- a/xbmc/input/InputManager.cpp +++ b/xbmc/input/InputManager.cpp @@ -459,13 +459,13 @@ bool CInputManager::OnEvent(XBMC_Event& newEvent) { case XBMC_KEYDOWN: { - if (m_LastKey.GetButtonCode() & CKey::MODIFIER_LONG) + m_Keyboard.ProcessKeyDown(newEvent.key.keysym); + CKey key = m_Keyboard.TranslateKey(newEvent.key.keysym); + if (key.GetButtonCode() == m_LastKey.GetButtonCode() && m_LastKey.GetButtonCode() & CKey::MODIFIER_LONG) { // Do not repeat long presses break; } - m_Keyboard.ProcessKeyDown(newEvent.key.keysym); - CKey key = m_Keyboard.TranslateKey(newEvent.key.keysym); if (!CButtonTranslator::GetInstance().HasLonpressMapping(g_windowManager.GetActiveWindowID(), key)) { m_LastKey.Reset(); |