Closed uthline closed 3 years ago
You're using the wrong function. That is only really meant for use by the framework.
In order to move the focus properly, you need to call https://asciimatics.readthedocs.io/en/stable/asciimatics.html#asciimatics.widgets.Frame.switch_focus
@peterbrittain thank you. Now I can make the program as I intended.
Hi, Thanks for making a great framework.
I have a question related to the focus function of TEXT widget. When focus is transferred to the Text widget using Tab, the Text widget receives keystrokes well. If focus is forcibly given to the Text widget by using the focus function, the Text widget cannot receive key input.
Should I do more thing to give focus to TEXT widget?
I wrote test example code. After run the example below, press
F2
and type, then you will be able to reproduce the symptoms I am talking about.thanks in advance. have a nice day.
Here is my test code: