mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-25 20:01:52 +01:00
Home, Tools and the Control Center now call the keyboard "Type on the headset", and T opens it from anywhere. The clipboard moves from Send to Frame to sit beside the keyboard, with a new Copy the headset's clipboard button: the server reads Klipper's getClipboardContents on the headset desktop's bus (base64 back, 1 MB limit, empty and image clipboards say so), and the desktop app, the iPhone app or frame_host.set_clipboard_text puts it on the clipboard here. Clipboard text is never logged. Not tested on a headset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
599 B
Python
15 lines
599 B
Python
"""Type on the headset: entry points, the T key and the clipboard copy, without a browser or headset."""
|
|
import shutil
|
|
import subprocess
|
|
import unittest
|
|
from pathlib import Path
|
|
|
|
|
|
@unittest.skipUnless(shutil.which('node'), 'Node exercises the page code')
|
|
class TypingUi(unittest.TestCase):
|
|
def test_behavior(self):
|
|
root = Path(__file__).resolve().parents[1]
|
|
result = subprocess.run(['node', '--test', str(root / 'tests/typing_ui.cjs')],
|
|
capture_output=True, text=True)
|
|
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
|