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

Method is_text_input_focused

src/engine.rs:5867–5872  ·  view source on GitHub ↗

Returns true if the currently focused element is a text input.

(&self)

Source from the content-addressed store, hash-verified

5865
5866 /// Returns true if the currently focused element is a text input.
5867 pub fn is_text_input_focused(&self) -> bool {
5868 if self.focused_element_id == 0 {
5869 return false;
5870 }
5871 self.text_edit_states.contains_key(&self.focused_element_id)
5872 }
5873
5874 /// Returns true if the currently focused text input is multiline.
5875 pub fn is_focused_text_input_multiline(&self) -> bool {

Callers 3

beginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected