From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 12 Nov 2024 21:22:46 +0000 (+0100)
Subject: In playlist view, autofocus pause/resume button.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/day?a=commitdiff_plain;h=82f4200c74a4abbc5cf5f31aa58481ad83969b8d;p=ytplom

In playlist view, autofocus pause/resume button.
---

diff --git a/templates/playlist.tmpl b/templates/playlist.tmpl
index b533d3c..aee1dee 100644
--- a/templates/playlist.tmpl
+++ b/templates/playlist.tmpl
@@ -40,7 +40,7 @@ td.history { width: 50%; }
 {% if running %}{% if pause %}PAUSED{% else %}PLAYING{% endif %}{% else %}STOPPED{% endif %}:<br />
 {{ current_title }}<br />
 <form action="/playlist" method="POST">
-<input type="submit" name="pause" value="{% if paused %}resume{% else %}pause{% endif %}">
+<input type="submit" name="pause" autofocus value="{% if paused %}resume{% else %}pause{% endif %}">
 <input type="submit" name="prev" value="prev">
 <input type="submit" name="next" value="next">
 <input type="submit" name="stop" value="{% if running %}stop{% else %}start{% endif %}">