mirror of
https://github.com/jetkvm/kvm.git
synced 2026-05-21 05:20:35 +00:00
2d491b075b
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