fix: ptt auto-detect falls back to toggle mode

Textual does not expose key-release events, so KittyPtt
hold-mode never received key_up and stayed transmitting.
Auto-detect now tries evdev first, then falls back to
toggle (press-on/press-off). Default mode changed to toggle.
This commit is contained in:
Username
2026-02-24 12:50:40 +01:00
parent bc0da57625
commit 31ac90d2c9
5 changed files with 21 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ def test_default_config():
assert cfg.server.host == "localhost"
assert cfg.server.port == 64738
assert cfg.audio.sample_rate == 48000
assert cfg.ptt.mode == "hold"
assert cfg.ptt.mode == "toggle"
def test_server_config():