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

Method keydown

src/services/focus.rs:78–84  ·  view source on GitHub ↗
(&self, e: &mut KeyEvent)

Source from the content-addressed store, hash-verified

76 }
77
78 fn keydown(&self, e: &mut KeyEvent) {
79 if let Some(focused) = self.canvas.focused() {
80 if focused.key_input() {
81 focused.keydown(e);
82 }
83 }
84 }
85
86 fn keyup(&self, e: &mut KeyEvent) {
87 if let Some(focused) = self.canvas.focused() {

Callers

nothing calls this directly

Calls 2

focusedMethod · 0.45
key_inputMethod · 0.45

Tested by

no test coverage detected