Skip to content

Commit 8907f3e

Browse files
committed
Cleanup
1 parent 63d3afc commit 8907f3e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ A simple, responsive Pomodoro timer built with HTML, CSS, and JS. The timer uses
88
- Configurable durations and sessions until long break
99
- Multiple themes (Morning, Night, Mint, Lavender)
1010
- Multiple themes (Morning, Night, Mint, Lavender + new: Sunrise, Ocean, Forest, Rose, Dusk)
11+
- Multiple themes (Morning, Night, Mint, Lavender, Sunrise, Ocean, Forest, Rose, Sunset, Desert, Sky, Meadow, Autumn)
1112
- Overlay settings drawer
1213
- Auto-start next session option
1314
- Small session progress dots
@@ -21,6 +22,8 @@ Open `index.html` in a modern browser.
2122
## Usage
2223
- Click the Start button (or press Space) to start/pause.
2324
- Skip (S) or Reset (R) a session using the buttons or the keyboard.
25+
- Global Spacebar support: press Space anywhere (when not focused in a text field) to start/pause the timer.
26+
- Global Cmd/Ctrl + K: press Cmd+K (macOS) or Ctrl+K (Windows/Linux) to open/close the settings panel.
2427
- Click the ⚙️ icon to open settings; modify durations, theme, and auto-start behavior.
2528
- Settings are saved to localStorage.
2629

script.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,14 @@ function pomodoroApp() {
235235
return;
236236
}
237237

238+
// Cmd/Ctrl+K to open settings (global)
239+
if ((e.ctrlKey || e.metaKey) && (e.code === 'KeyK' || e.key === 'k' || e.key === 'K')) {
240+
e.preventDefault();
241+
e.stopPropagation();
242+
this.toggleSettings();
243+
return;
244+
}
245+
238246
if (e.code === 'KeyR' && !e.metaKey && !e.ctrlKey) {
239247
e.preventDefault();
240248
this.resetTimer();

0 commit comments

Comments
 (0)