address reviewer feedback

This commit is contained in:
Charles Ewert 2023-10-31 17:01:31 -04:00
parent 2af861fedc
commit 28b213377f

View File

@ -203,7 +203,7 @@ end sub
' Returns true if any of the data entry forms are in focus ' Returns true if any of the data entry forms are in focus
function isFormInFocus() as boolean function isFormInFocus() as boolean
if m.settingDetail.focusedChild <> invalid or m.radioSetting.hasFocus() or m.boolSetting.hasFocus() or m.integerSetting.hasFocus() if isValid(m.settingDetail.focusedChild) or m.radioSetting.hasFocus() or m.boolSetting.hasFocus() or m.integerSetting.hasFocus()
return true return true
end if end if
return false return false
@ -215,7 +215,7 @@ function onKeyEvent(key as string, press as boolean) as boolean
if (key = "back" or key = "left") and m.settingsMenu.focusedChild <> invalid and m.userLocation.Count() > 1 if (key = "back" or key = "left") and m.settingsMenu.focusedChild <> invalid and m.userLocation.Count() > 1
LoadMenu({}) LoadMenu({})
return true return true
else if (key = "back" or key = "left") and isFormInFocus() = true else if (key = "back" or key = "left") and isFormInFocus()
m.settingsMenu.setFocus(true) m.settingsMenu.setFocus(true)
return true return true
end if end if