aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2016-03-06 13:23:37 +0100
committerMartijn Kaijser <martijn@xbmc.org>2016-03-06 13:23:37 +0100
commit46d1480ec18cc0552fab67dcb20923e362145810 (patch)
treef9636c1ee867973ba17a1f229e579b873daf4f59
parent38cb247130a8fd73f36e3d1d49477a19669caaf9 (diff)
parent99f576c2affa3687520cda0e74143ad36f246d6d (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.cpp6
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();