split get_focused_* in id and object, implement is_system_mode