stopwatch key presses stop working after remove with focus
See original GitHub issueFrom the css
branch on version 0.2.0b7
, it looks like there is a bug in the docs/example/tutorial/stopwatch.py
example or maybe something to do with focus.
To reproduce, run stopwatch.py
, use tab
to focus the “Reset” button on the last stopwatch, and then press r
to remove it. After this, the app no longer responds to any key presses, including ctrl+c
. Using the mouse to click a button seems to get things working again.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Can't stop the focus in clock app - Microsoft Community
I press the Stop button, nothing happens. I already tried auto repair and reset in setting app but it doesn't work.
Read more >When I hit the spacebar to stop the stopwatch it restarts at 0 ...
If you shift focus to the input and then hit space it works as expected. Disabling the start button when the timer starts...
Read more >The 8 best apps to help you focus and block distractions in 2023
Turn these focus apps on, and you can't open anything distracting—it won't work. Instead, you'll see a reminder that you set up software...
Read more >Stream Countdown Timer for Elgato Stream Deck - GitHub
Focus Timer action alternates between work and break intervals to improve your focus and get work done. Auto Reset feature allows you to...
Read more >Handling Events :: Eloquent JavaScript
For example, if you add a button to the DOM when a key is pressed and remove it again when the key is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A fix for this is now in the CSS branch: https://github.com/Textualize/textual/pull/954
Thanks again @aaronst for catching this.
Did we solve your problem?
Consider buying the Textualize developers a coffee to say thanks.
– Textualize