From 7b6909ef097a38e06b88185304eb00eecd30a163 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 21 Jan 2026 21:55:50 +0200 Subject: simplify: remove Space key, use P/Shift+P for audio playback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- internal/gui/app.go | 13 +------------ 1 file changed, 1 insertion(+), 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() -- cgit v1.2.3