Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pr-issue-61.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## πŸ“Œ Description
Implemented functionality that allows the user to start the typing test by pressing the `Enter` (`<Return>`) key instead of clicking the "Start Test" button with the mouse. This enables a more seamless and intuitive typing test workflow without taking hands off the keyboard.

## πŸ”— Related Issue
Closes #61

## πŸ›  Changes Made
- Bound the `<Return>` key to check if `self.start_button` is enabled.
- Invokes `self.start_test()` if it is safe to start the test.

## πŸ“· Screenshots (if applicable)

## βœ… Checklist
- [x] I have tested my changes
- [x] I have linked the related issue
- [x] My code follows project guidelines
6 changes: 6 additions & 0 deletions typing_speed_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ def __init__(self):
)
self.pause_button.grid(row=0, column=1, padx=10)

self.bind("<Return>", self.handle_enter)

def handle_enter(self, event=None):
if self.start_button.cget("state") == "normal":
self.start_test()

# ======================
# STREAK TEXT
# ======================
Expand Down
Loading