Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_start
Method · 0.80
DropdownMenu
Function · 0.80
tag_option_on_keydown
Function · 0.80
ContextMenuContent
Function · 0.80
SelectList
Function · 0.80
Calls
2
first_available_index
Method · 0.80
set_focus
Method · 0.45
Tested by
no test coverage detected