MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / sync_keyboard_focus

Function sync_keyboard_focus

src/machine_window.rs:1109–1117  ·  view source on GitHub ↗

Keep egui's keyboard focus in sync with our own focus flag for the surface `id`. While `focused`, the surface holds focus so `wants_keyboard_input()` stays true and egui consumes keystrokes (no OS default beep); when it loses focus we surrender it so other widgets behave normally.

(ui: &egui::Ui, id: egui::Id, focused: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

render_consoleMethod · 0.85
render_framebufferMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected