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

Method mousedown

src/elements/text_field.rs:266–274  ·  view source on GitHub ↗
(&self, event: &mut MouseEvent)

Source from the content-addressed store, hash-verified

264 }
265
266 fn mousedown(&self, event: &mut MouseEvent) {
267 // self.base.mousedown(event);
268
269 if self.contains(event.x as f32, event.y as f32) {
270 self.focus();
271 } else {
272 self.unfocus();
273 }
274 }
275
276 fn unfocus(&self) {
277 // self.base.unfocus();

Callers

nothing calls this directly

Calls 3

focusMethod · 0.80
containsMethod · 0.45
unfocusMethod · 0.45

Tested by

no test coverage detected