From 28b213377f4a600a1146b1d6c8337827328270fc Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 31 Oct 2023 17:01:31 -0400 Subject: [PATCH] address reviewer feedback --- components/settings/settings.brs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/settings/settings.brs b/components/settings/settings.brs index fa34e1aa..3d63dde9 100644 --- a/components/settings/settings.brs +++ b/components/settings/settings.brs @@ -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 @@ -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