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

Method focus

lib/selection-manager.ts:336–341  ·  view source on GitHub ↗

* Focus the terminal (make it receive keyboard input)

()

Source from the content-addressed store, hash-verified

334 * Focus the terminal (make it receive keyboard input)
335 */
336 focus(): void {
337 const canvas = this.renderer.getCanvas();
338 if (canvas.parentElement) {
339 canvas.parentElement.focus();
340 }
341 }
342
343 /**
344 * Get current selection coordinates (for rendering)

Callers 2

attachEventListenersMethod · 0.45
copyToClipboardMethod · 0.45

Calls 1

getCanvasMethod · 0.80

Tested by

no test coverage detected