question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stopwatch key presses stop working after remove with focus

See original GitHub issue

From 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:closed
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
davepcommented, Oct 19, 2022

A fix for this is now in the CSS branch: https://github.com/Textualize/textual/pull/954

Thanks again @aaronst for catching this.

0reactions
github-actions[bot]commented, Oct 19, 2022

Did we solve your problem?

Consider buying the Textualize developers a coffee to say thanks.

Textualize

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found