From bc0da576254ef21ea3da2ef938eb5f4f5ca61f0e Mon Sep 17 00:00:00 2001 From: Username Date: Tue, 24 Feb 2026 12:46:45 +0100 Subject: [PATCH] ptt: change default key from space to f4 Space conflicts with chat input. F4 is unused by default in most terminal emulators and won't interfere with typing. --- docs/USAGE.md | 2 +- src/tuimble/config.py | 2 +- tests/test_config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 1662616..10f4c24 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -12,7 +12,7 @@ tuimble --host mumble.example.com --user myname | Key | Action | |-----|--------| | `q` | Quit | -| `space` | Push-to-talk (configurable) | +| `F4` | Push-to-talk (configurable) | | `Enter` | Send message | | `Ctrl+C` | Quit | diff --git a/src/tuimble/config.py b/src/tuimble/config.py index 37900e7..6f5bef3 100644 --- a/src/tuimble/config.py +++ b/src/tuimble/config.py @@ -28,7 +28,7 @@ class AudioConfig: @dataclass class PttConfig: - key: str = "space" + key: str = "f4" mode: str = "hold" # hold | toggle backend: str = "auto" # auto | kitty | evdev | toggle diff --git a/tests/test_config.py b/tests/test_config.py index 0754580..e5f9f82 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -19,5 +19,5 @@ def test_server_config(): def test_ptt_config_defaults(): ptt = PttConfig() - assert ptt.key == "space" + assert ptt.key == "f4" assert ptt.backend == "auto"