mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
[escher] Change tab specification: do not active a tab with down event
but only ok Change-Id: I990198c81ac68fe1558a0672c737c31e3ec3ea4a
This commit is contained in:
@@ -96,8 +96,12 @@ bool TabViewController::handleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::Down || event == Ion::Events::OK) {
|
||||
setActiveTab(m_selectedChildIndex, event == Ion::Events::OK);
|
||||
if (event == Ion::Events::Down) {
|
||||
setActiveTab(m_activeChildIndex, false);
|
||||
return true;
|
||||
}
|
||||
if (event == Ion::Events::OK) {
|
||||
setActiveTab(m_selectedChildIndex, true);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user