MCPcopy Create free account
hub / github.com/PerroEngine/Perro / editor_text_box_has_focus

Function editor_text_box_has_focus

perro_editor/res/scripts/scene/editor_nav.rs:538–544  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
)

Source from the content-addressed store, hash-verified

536pub fn editor_text_box_has_focus<API: ScriptAPI + ?Sized>(
537 ctx: &mut ScriptContext<'_, API>,
538) -> bool {
539 with_state!(ctx.run, EditorState, ctx.id, |state| {
540 !state.focused_inspector_box.is_empty()
541 }).unwrap_or_default()
542}
543
544pub fn commit_focused_inspector_box<API: ScriptAPI + ?Sized>(
545 ctx: &mut ScriptContext<'_, API>,
546) -> bool {
547 let name = with_state!(ctx.run, EditorState, ctx.id, |state| {

Callers 3

update_freecamFunction · 0.85
update_editor_shortcutsFunction · 0.85
update_freecam_2dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected