From cf408d861cbd8def8799eb2575c7403c9bc24a50 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 23 Dec 2011 22:04:35 +0000 Subject: [PATCH] neutrino timerlist: ignore numeric keys in open timerlist Prevents sending of key messages to parent menus with number shortcuts, but probably needs a better solution. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1994 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a7558578c88788b53b79c1458595bd33db99a858 Author: Thilo Graf Date: 2011-12-23 (Fri, 23 Dec 2011) Origin message was: ------------------ *neutrino timerlist: ignore numeric keys in open timerlist Prevents sending of key messages to parent menus with number shortcuts, but probably needs a better solution. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1994 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/timerlist.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 66c2f6e74..0413f53a7 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -486,7 +486,12 @@ int CTimerList::show() paint(); } g_RCInput->getMsgAbsoluteTimeout( &msg, &data, &timeoutEnd ); - + + //ignore numeric keys + if (g_RCInput->isNumeric(msg)){ + msg = CRCInput::RC_nokey; + } + if ( msg <= CRCInput::RC_MaxRC ) timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings ::TIMING_MENU]);