MicroDagr - Prevent Home Key being blocked

Fix #2974
This commit is contained in:
PabstMirror 2015-12-08 21:31:03 -06:00
parent 0599b35fc6
commit 0eed4799af
3 changed files with 8 additions and 1 deletions

View File

@ -171,6 +171,9 @@ case (APP_MODE_WAYPOINTS): {
_currentIndex = (_currentIndex max 0) min (count _waypoints);
_wpListBox lbSetCurSel _currentIndex;
//Reset focus to a dummy ctrl (top button), otherwise HOME/POS1 key goes to top of listBox and has keybind blocked
ctrlSetFocus (_display displayCtrl IDC_TOPMENUBUTTON);
};
case (APP_MODE_SETUP): {
@ -190,5 +193,8 @@ case (APP_MODE_SETUP): {
} else {
_settingListBox lbSetTextRight [1, (localize LSTRING(settingOff))];
};
//Reset focus to a dummy ctrl (top button), otherwise HOME/POS1 key goes to top of listBox and has keybind blocked
ctrlSetFocus (_display displayCtrl IDC_TOPMENUBUTTON);
};
};

View File

@ -140,7 +140,7 @@ class controlsBackground {
class controls {
class TopMenuClick: GVAR(RscActiveTextPicture) {
idc = -1;
idc = IDC_TOPMENUBUTTON;
text = "#(argb,8,8,3)color(0,0,0,0)";
x = X_PART(0);
y = Y_PART(0);

View File

@ -54,6 +54,7 @@
#define IDC_MODEDISPLAY_TARGETRANGENUM 144023
#define IDC_MODEDISPLAY_TARGETELEVATIONNUM 144024
#define IDC_MODEDISPLAY_TARGETNAME 144025
#define IDC_TOPMENUBUTTON 144030
#define IDC_MODECOMPASS 144100
#define IDC_MODECOMPASS_HEADING 144110