-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The event from child screen delivered to parent screen #5306
Comments
I'm afraid I don't follow what the issue is. Can you provide step by step instructions on what to do. And what happened in the older version. We have a Chinese speaker in the office, if you would prefer to do this in Chinese. |
哈哈,好的,那我就用中文描述了。 我测试发现 0.70.0 版本运行是符合上述描述的,但之后的版本有问题。 在新版本中,当在第二个Screen输入Enter键后,它返回到第一个Screen的瞬间又到了第二个Screen,没有停留在第一个Screen。我打印日志发现第二个Screen的Enter键触发到第一个Screen的 EN: I tested and found that version 0.70.0 runs as described above, but later versions have issues. In the new version, when you enter the Enter key on the second screen, it returns to the first screen and then to the second screen, instead of staying on the first screen. I printed the log and found that the Enter key of the second screen triggered the You can run it locally and take a look, thanks. |
I have found the reason, we can stop the event to delivery. In this case, we can add a line |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
I recently upgraded textual, and found unexpected result with my app. Here is a sample test code.
Expect results: It should stop at parent screen when
enter
key pressed in child screen.In textual==0.70.0, it worked, and the issue has existed since 0.71.0
The text was updated successfully, but these errors were encountered: