Default_focus True + tooltips break keyboard navigation?
Posted: Wed Oct 05, 2022 1:29 am
On Ren'Py version 8.0.3. Maybe related to the recent default_focus changes?
Quick build showing the possible bug:
https://drive.google.com/file/d/1pNyk8z ... sp=sharing
I replaced main menu with this:
The issues:
Quick build showing the possible bug:
https://drive.google.com/file/d/1pNyk8z ... sp=sharing
I replaced main menu with this:
Code: Select all
screen main_menu():
vbox align (0.5,0.5) spacing 10:
textbutton "This button does not have a tooltip and has default_focus True." background "#FFF" action NullAction() default_focus True
textbutton "This button does not have a tooltip." background "#FFF" action NullAction()
textbutton "This button does not have a tooltip." background "#FFF" action NullAction()
textbutton "This button has a tooltip." background "#FFF" action NullAction() tooltip "This is the tooltip."
$ tooltip = GetTooltip()
if tooltip:
label [tooltip]:
align (0.5,0.8)
background "#FFF"- Mouse works fine, but if you navigate with keyboard UP/DOWN, the last button with the tooltip can't gain focus and thus the player can't interact with it.
- If you move "default_focus True" to the last button with the tooltip, then when you navigate with keyboard to the last button, the focus will stay stuck to that button.
- If you delete "default_focus True" from the first button, then keyboard works fine on all buttons.
- If you delete the tooltip from the last button, then keyboard works fine on all buttons.