Fix for input field focus
This commit is contained in:
1 parent
5d38b325c5
commit
e49aa9b7d8
3 files changed
+14
-13
No files matched your search
@@ -3,7 +3,6 @@ function Init()
|
||||
m.top.observeField("focusedChild", "OnFocusChanged")
|
||||
m.top.observeField("value", "OnValueChanged")
|
||||
m.top.observeField("settings", "OnSettingsScreen")
|
||||
m.keyboardWasClosedByButton = false
|
||||
end function
|
||||
|
||||
function OnSettingsScreen()
|
||||
@@ -45,15 +44,9 @@ function OnButtonSelected(event as object)
|
||||
if buttonSelected = 0
|
||||
m.top.value = keyboard.text
|
||||
end if
|
||||
m.keyboardWasClosedByButton = true
|
||||
keyboard.close = true
|
||||
end function
|
||||
|
||||
function OnKeyboardClosed() as void
|
||||
' The keyboard was closed by something else (like cast from web app)
|
||||
' In this case, we do nothing, since the focus might be moved to the video player
|
||||
if not m.keyboardWasClosedByButton
|
||||
return
|
||||
end if
|
||||
m.top.settings@.MenuNavigate(-1)
|
||||
end function
|
||||
Reference in new issue
Block a user