bool AnalysisWidget::KeyPress(unsigned key_code) { switch (key_code) { case KEY_LEFT: #ifdef GNAV case '6': // Key F14 added in order to control the Analysis-Pages with the Altair RemoteStick case KEY_F14: #endif previous_button.SetFocus(); NextPage(-1); return true; case KEY_RIGHT: #ifdef GNAV case '7': // Key F13 added in order to control the Analysis-Pages with the Altair RemoteStick case KEY_F13: #endif next_button.SetFocus(); NextPage(+1); return true; default: return false; } }
bool WaypointDetailsWidget::KeyPress(unsigned key_code) { switch (key_code) { case KEY_LEFT: #ifdef GNAV case '6': #endif previous_button.SetFocus(); NextPage(-1); return true; case KEY_RIGHT: #ifdef GNAV case '7': #endif next_button.SetFocus(); NextPage(+1); return true; default: return false; } }
bool SetFocus() override { close_button.SetFocus(); return true; }
bool SetFocus() override { if (allow_navigation) goto_button.SetFocus(); return true; }