MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / focus_first

Method focus_first

primitives/src/collection.rs:257–259  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

255 }
256
257 pub(crate) fn focus_first(&mut self) {
258 self.set_focus(self.first_available_index());
259 }
260
261 pub(crate) fn focus_last(&mut self) {
262 self.set_focus(self.last_available_index());

Callers 5

focus_startMethod · 0.80
DropdownMenuFunction · 0.80
tag_option_on_keydownFunction · 0.80
ContextMenuContentFunction · 0.80
SelectListFunction · 0.80

Calls 2

first_available_indexMethod · 0.80
set_focusMethod · 0.45

Tested by

no test coverage detected