summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-21 21:55:50 +0200
committerPaul Buetow <paul@buetow.org>2026-01-21 21:55:50 +0200
commit7b6909ef097a38e06b88185304eb00eecd30a163 (patch)
treee83c515a4aadcd746d1c860916dafc67c603d3ad
parented8925801c251f6efdc595badb66b6774cc72c68 (diff)
simplify: remove Space key, use P/Shift+P for audio playback
- Remove Space key handler from handleShortcutKey Space is not needed - use P/Shift+P instead - Clarify hotkeys help text p/п = play front audio P/П = play back audio (bg-bg only) The SetOnTypedRune handler already correctly handles case-sensitive keys (p vs P, a vs A) for both playback and regeneration.
-rw-r--r--internal/gui/app.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/internal/gui/app.go b/internal/gui/app.go
index 03d45aa..7d48f75 100644
--- a/internal/gui/app.go
+++ b/internal/gui/app.go
@@ -1537,8 +1537,7 @@ func (a *Application) onShowHotkeys() {
## Playback
**p/п** Play front audio (or audio for en-bg)
-**Space** Play back audio (bg-bg only)
-**P/П** Legacy: Play back audio (bg-bg only, use Space instead)
+**P/П** Play back audio (bg-bg only)
**u/у** Toggle auto-play
## Export & Archive
@@ -2593,16 +2592,6 @@ func (a *Application) handleShortcutKey(key fyne.KeyName) {
}
a.onNextWord()
- case fyne.KeyP: // Play front audio
- if a.currentAudioFile != "" {
- a.audioPlayer.Play()
- }
-
- case fyne.KeySpace: // Play back audio (for bg-bg cards)
- if a.currentAudioFileBack != "" {
- a.audioPlayer.PlayBack()
- }
-
case fyne.KeyX: // Export to APKG
a.onExportToAnki()