MCPcopy Create free account
hub / github.com/angular-rust/ux-components / keyup

Method keyup

src/elements/transform.rs:372–378  ·  view source on GitHub ↗
(&self, e: &mut KeyEvent)

Source from the content-addressed store, hash-verified

370 }
371
372 fn keyup(&self, e: &mut KeyEvent) {
373 let mut component = self.component.borrow_mut();
374
375 if component.onkeyup.is_some() {
376 let _ = component.onkeyup.get().try_send(e.clone());
377 }
378 }
379
380 fn keydown(&self, e: &mut KeyEvent) {
381 let mut component = self.component.borrow_mut();

Callers

nothing calls this directly

Calls 3

try_sendMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected