We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7546eb commit c9ef6cdCopy full SHA for c9ef6cd
internal_filesystem/lib/mpos/ui/focus_direction.py
@@ -165,6 +165,12 @@ def process_object(obj, depth=0):
165
166
# This function is missing so emulate it using focus_next():
167
def emulate_focus_obj(focusgroup, target):
168
+ if not focusgroup:
169
+ print("emulate_focus_obj needs a focusgroup, returning...")
170
+ return
171
+ if not target:
172
+ print("emulate_focus_obj needs a target, returning...")
173
174
for objnr in range(focusgroup.get_obj_count()):
175
currently_focused = focusgroup.get_focused()
176
#print ("emulate_focus_obj: currently focused:") ; mpos.util.print_lvgl_widget(currently_focused)
0 commit comments