ADD function to press Enter to confirm password #13

This commit is contained in:
Caffeine Fueled 2026-03-02 21:35:15 +01:00
parent 42eee8574c
commit 60d3219f7e
Signed by: cf7
GPG key ID: CA295D643074C68C

2
app.py
View file

@ -188,7 +188,7 @@ HTML = """<!doctype html>
<a id="info" href="/system/info">Info</a> <a id="info" href="/system/info">Info</a>
<div id="pw-panel"> <div id="pw-panel">
<label>Password protection</label> <label>Password protection</label>
<input id="pw-input" type="password" placeholder="New password…"/> <input id="pw-input" type="password" placeholder="New password…" onkeydown="if(event.key==='Enter')setPassword()"/>
<div class="pw-btns"> <div class="pw-btns">
<button onclick="setPassword()">Set</button> <button onclick="setPassword()">Set</button>
<button onclick="genPassword()">Generate</button> <button onclick="genPassword()">Generate</button>