MCPcopy Create free account
hub / github.com/coder/ghostty-web / simulateKey

Function simulateKey

lib/input-handler.test.ts:148–156  ·  view source on GitHub ↗
(
  container: ReturnType<typeof createMockContainer>,
  event: MockKeyboardEvent
)

Source from the content-addressed store, hash-verified

146
147// Helper to simulate key event
148function simulateKey(
149 container: ReturnType<typeof createMockContainer>,
150 event: MockKeyboardEvent
151): void {
152 const handlers = container._listeners.get('keydown') || [];
153 for (const handler of handlers) {
154 handler(event);
155 }
156}
157
158describe('InputHandler', () => {
159 let ghostty: Ghostty;

Callers 1

Calls 1

handlerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…