From 9e3e8e981b2aa7e47e47b50a585b648b7c124c2f Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Fri, 19 Apr 2013 01:30:43 +0200 Subject: [PATCH] * Infoviewer: Fix key handling for PiP --- src/gui/infoviewer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index d97261679..2f696d841 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -835,6 +835,14 @@ void CInfoViewer::loop(bool show_dot) while (!(res & (messages_return::cancel_info | messages_return::cancel_all))) { g_RCInput->getMsgAbsoluteTimeout (&msg, &data, &timeoutEnd); +#ifdef ENABLE_PIP + if ((msg == (neutrino_msg_t) g_settings.key_pip_close) || + (msg == (neutrino_msg_t) g_settings.key_pip_setup) || + (msg == (neutrino_msg_t) g_settings.key_pip_swap)) { + g_RCInput->postMsg(msg, data); + res = messages_return::cancel_info; + } else +#endif if (msg == (neutrino_msg_t) g_settings.key_screenshot) { res = CNeutrinoApp::getInstance()->handleMsg(msg, data);