MCPcopy Index your code
hub / github.com/endbasic/endbasic / inject_input_event

Method inject_input_event

web/src/input.rs:91–96  ·  view source on GitHub ↗

Pushes a new captured `dom_event` input event into the input.

(&self, dom_event: InputEvent)

Source from the content-addressed store, hash-verified

89
90 /// Pushes a new captured `dom_event` input event into the input.
91 pub fn inject_input_event(&self, dom_event: InputEvent) {
92 // TODO(jmmv): Add an on-screen button to send CTRL+C events.
93 for key in on_input_event_into_keys(dom_event) {
94 self.safe_try_send(key);
95 }
96 }
97
98 /// Pushes a new captured `dom_event` keyboard event into the input.
99 pub fn inject_keyboard_event(&self, dom_event: KeyboardEvent) {

Callers 1

index.jsFile · 0.80

Calls 2

on_input_event_into_keysFunction · 0.85
safe_try_sendMethod · 0.80

Tested by

no test coverage detected