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

Method find_marked

src/services/focus.rs:254–262  ·  view source on GitHub ↗
(&self, e: &mut MouseEvent)

Source from the content-addressed store, hash-verified

252 }
253
254 fn find_marked(&self, e: &mut MouseEvent) -> Option<&Box<dyn Element>> {
255 match self.get_focusable(e.x as f32, e.y as f32) {
256 Some(marked) => {
257 self.mark_control(marked.as_ref(), e);
258 Some(marked)
259 }
260 None => None,
261 }
262 }
263
264 fn unmark_control(&self, control: &dyn Element, e: &mut MouseEvent) {
265 if control.is_marked() {

Callers

nothing calls this directly

Calls 3

get_focusableMethod · 0.80
mark_controlMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected