Skip to content

Commit

Permalink
address reviewer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 31, 2023
1 parent 2af861f commit 28b2133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/settings/settings.brs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ end sub

' Returns true if any of the data entry forms are in focus
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
end if
return false
Expand All @@ -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
LoadMenu({})
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)
return true
end if
Expand Down

0 comments on commit 28b2133

Please sign in to comment.