You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling a bit setting the focus on proper widget (Trying to replace the code setting focus_widget/delete_focus).
I did have fixed it but I actually wonder. If I understand properly the logic:
If we have touch, no focus is set by default, which ends up being the back button
If we don't have touch, the focus tried to be set on first element or back button.
Now we can have the case where touch is broken/user wants to use the physical buttons anyway. (I guess that it's why the delete_focus is made only when not on the Pi). So we need something to focus by default: which ends up being the (graphical) back button in that case.
But, we can always leave the screen by using the physical one so it's a bit redundant. Actually for a 'pure' non touch device the graphical back button is hardly gonna be used.
I think by:
having the back button never focusable.
having always focus set a similar way if touch/no touch device.
This would very much simplify the code around setting the next focus widget . The only con is see is that even on touch device we will have something focused in (as in: a menu item compared to the back button previously) when opening menu
(for 1. we could remove the graphical back button for non-touch devices, but probably better not doing it)
P.S: Prob an error in the documentation:
A and E in that case should be Left (<) and Right (>)
The text was updated successfully, but these errors were encountered:
I'm struggling a bit setting the focus on proper widget (Trying to replace the code setting focus_widget/delete_focus).
I did have fixed it but I actually wonder. If I understand properly the logic:
Now we can have the case where touch is broken/user wants to use the physical buttons anyway. (I guess that it's why the delete_focus is made only when not on the Pi). So we need something to focus by default: which ends up being the (graphical) back button in that case.
But, we can always leave the screen by using the physical one so it's a bit redundant. Actually for a 'pure' non touch device the graphical back button is hardly gonna be used.
I think by:
This would very much simplify the code around setting the next focus widget . The only con is see is that even on touch device we will have something focused in (as in: a menu item compared to the back button previously) when opening menu
(for 1. we could remove the graphical back button for non-touch devices, but probably better not doing it)
P.S: Prob an error in the documentation:
![image](https://private-user-images.githubusercontent.com/16878205/272263359-bf15ecfc-7d2e-4c8c-abcb-619b1d269634.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzQxODIsIm5iZiI6MTcxOTE3Mzg4MiwicGF0aCI6Ii8xNjg3ODIwNS8yNzIyNjMzNTktYmYxNWVjZmMtN2QyZS00YzhjLWFiY2ItNjE5YjFkMjY5NjM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDIwMTgwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzZDllZDYyM2FiMWYyYmI5ZmExZjc4ZGRhYWViZWY2ZTA2NWQyYmY3ZGY2YjI5Njk3ZjhiOGYzZWM2OTVkMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lWo5NjG1e_heEg23XH9NvlPEimstuHUeQlmbUyR8QGE)
A and E in that case should be Left (<) and Right (>)
The text was updated successfully, but these errors were encountered: