mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
hintbox: restore proper handling of up/down keys
When no scrollbar is present, just pass through up/down keys instead
of only canceling the hintbox. This restores the behaviour before
commit dde298b1b7
.
Prominent examle is the "channel not available" popup which prevented
further channel switching until canceled.
This commit is contained in:
committed by
svenhoefer
parent
f76dda36df
commit
5f93b57d84
@@ -219,16 +219,13 @@ int CHintBox::exec()
|
|||||||
{
|
{
|
||||||
res = messages_return::cancel_all;
|
res = messages_return::cancel_all;
|
||||||
}
|
}
|
||||||
else if ((msg == CRCInput::RC_up) || (msg == CRCInput::RC_down))
|
else if (enable_txt_scroll && (msg == CRCInput::RC_up || msg == CRCInput::RC_down))
|
||||||
{
|
{
|
||||||
if (enable_txt_scroll){
|
/* if ! enable_txt_scroll, fall through to last else branch instead */
|
||||||
if (msg == CRCInput::RC_up)
|
if (msg == CRCInput::RC_up)
|
||||||
this->scroll_up();
|
this->scroll_up();
|
||||||
else
|
|
||||||
this->scroll_down();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
res = messages_return::cancel_all;
|
this->scroll_down();
|
||||||
}
|
}
|
||||||
else if (CNeutrinoApp::getInstance()->listModeKey(msg)){
|
else if (CNeutrinoApp::getInstance()->listModeKey(msg)){
|
||||||
// do nothing //TODO: if passed rc messages are ignored rc messaages: has no effect here too!!
|
// do nothing //TODO: if passed rc messages are ignored rc messaages: has no effect here too!!
|
||||||
|
Reference in New Issue
Block a user