mirror of
https://github.com/deunix-educ/mediadeck.git
synced 2026-11-25 04:39:42 +01:00
Explain a greyed "Keyboard" button: show the reason on tap and log it
On a fresh install features.text_input is false, so the Keyboard button of the Remote tab was greyed out, with the reason only in a title tooltip that cannot be read on a tablet. - The button now uses aria-disabled instead of disabled (same look); tapping it shows the reason in a toast instead of doing nothing. - The server logs "text entry enabled" or "text entry unavailable: <reason>" at startup. - README (fr/en): text entry is listed as optional and off by default in the installation steps, and the possible reasons are documented. tests/test_ui_text_button.py (real Chromium) and a startup-log test in tests/test_text.py cover it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -35,7 +35,8 @@ def state(scenario: str) -> dict[str, Any]:
|
||||
"type": "state", "version": "test",
|
||||
"mpris": {"players": players, "active": PLAYER["name"] if players else None, "available": True},
|
||||
"audio": {"available": True, "default": "hdmi", "max_volume": 1.0, "sinks": SINKS},
|
||||
"input": {"available": True, "reason": None, "keys": [], "text": {"available": False, "reason": None}},
|
||||
"input": {"available": True, "reason": None, "keys": [],
|
||||
"text": {"available": False, "reason": "disabled in config (features.text_input)"}},
|
||||
"system": {"power": True, "admin": True, "launchers": [], "media": media},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user