MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / set_focus

Method set_focus

src/lib.rs:1004–1006  ·  view source on GitHub ↗

Sets focus to the element with the given ID.

(&mut self, id: impl Into<Id>)

Source from the content-addressed store, hash-verified

1002
1003 /// Sets focus to the element with the given ID.
1004 pub fn set_focus(&mut self, id: impl Into<Id>) {
1005 self.context.set_focus(id.into().id);
1006 }
1007
1008 /// Clears focus (no element is focused).
1009 pub fn clear_focus(&mut self) {

Calls

no outgoing calls