Files
sky_phone-sky-systems/sky_phone/source/client/focus.lua
T
2026-08-12 18:59:05 +02:00

22 lines
639 B
Lua

SkyPhoneFocus = {}
function SkyPhoneFocus.Resolve(state)
if state.activity_suspended then
return { focused = false, keep_input = false }
end
if state.call_focus then
return { focused = true, keep_input = false }
end
if state.camera_active and not state.camera_nui_focused then
return { focused = false, keep_input = true }
end
return {
focused = state.is_open
or state.notification_focus
or state.payphone_focus
or state.sim_picker_open
or (state.camera_active and state.camera_nui_focused),
keep_input = false,
}
end