Files
Adam Shiervani 2d491b075b fix: expose sendText on test hooks for layout-aware HID text input (#787)
Add sendText(text) to window.__kvmTestHooks for Playwright E2E tests.
This bridges the keyboard-layout-aware character-to-HID-keystroke conversion
(already in PasteModal) to the test hooks API, since Puppeteer's keyboard.type()
bypasses the WebRTC HID data channel.

- Add _getKeyboardLayout to TestHooksInternal, populated from registerTestHandlers
- Implement sendText() in initTestHooks() using layout.chars lookup with shift/altRight/deadKey/accentKey handling
- Add getKeyboardLayout handler in devices.$id.tsx route
- Add sendText() helper in e2e/helpers.ts
2026-03-25 11:21:10 +01:00
..
2024-12-29 21:27:42 +01:00