Skip to content

Add keyboard shortcuts to adjust timer by minutes#148

Open
owenmead wants to merge 4 commits intomichaelvillar:masterfrom
owenmead:feat/key-add-sub-time
Open

Add keyboard shortcuts to adjust timer by minutes#148
owenmead wants to merge 4 commits intomichaelvillar:masterfrom
owenmead:feat/key-add-sub-time

Conversation

@owenmead
Copy link
Copy Markdown

@owenmead owenmead commented Apr 7, 2026

Summary

Adds keyboard shortcuts to increment or decrement the timer while it is
running or paused, without needing to re-enter a time manually.

Key Action
+ or Add 1 minute
- or Subtract 1 minute
shift++ or shift+ Add 10 minutes
shift+- or shift+ Subtract 10 minutes

Timer is clamped at 0 — subtracting below zero has no effect.

Changes

  • MVClockView+Behavior.swift — Added adjustMinutes(by:) helper and
    wired up +/-// keys (with optional shift modifier for ±10
    minutes) in keyUp(with:).
  • README.md — Reformatted keyboard shortcut list as a table and
    documented the new shortcuts.
  • TimerKeyboardInputTests.swift — Added UI tests covering all new key
    combinations, the zero-clamp behaviour, and adjustment while the timer is
    running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant