Skip to content

Commit 3e935b3

Browse files
committed
Update code docs
1 parent 841b686 commit 3e935b3

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

docs/components_search_SearchResults.bs.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
end sub
3434

3535
sub OnScreenShown()
36-
' Start with transparent backdrop - will update on item focus
37-
m.global.sceneManager.callFunc("setBackgroundImage", "")
38-
3936
' Restore focus for scene navigation
4037
if isValid(m.top.lastFocus)
4138
m.top.lastFocus.setFocus(true)
@@ -44,11 +41,17 @@
4441
end if
4542
end sub
4643

47-
' onKeyboardFocusChange: Adjust alphabet keyboard position when textbox gains/loses focus
48-
' The voice button popup covers alphabet rows when textbox is focused, so we move the textbox up
44+
' onKeyboardFocusChange: Fires when focus changes within the keyboard subtree (including entry/exit).
45+
' Clears stale backdrop when keyboard gains focus, and adjusts alphabet layout when the
46+
' voice button popup appears (textEditBox focused moves the textbox up to avoid overlap).
4947
sub onKeyboardFocusChange()
5048
if not isValid(m.searchAlphabox) then return
5149

50+
' Clear stale backdrop whenever keyboard gains focus
51+
if m.searchAlphabox.isInFocusChain()
52+
m.global.sceneManager.callFunc("setBackgroundImage", "")
53+
end if
54+
5255
' Check if the textEditBox has focus (voice button popup is visible)
5356
if m.searchAlphabox.textEditBox.hasFocus()
5457
' Move textbox up so voice button popup doesn't cover alphabet rows below

docs/data/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/module-SearchResults.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)