@@ -185,13 +185,15 @@ def move_focus_direction(angle):
185185print ("move_focus_direction: nothing is focused, choosing the next thing" )
186186focus_group .focus_next ()
187187current_focused = focus_group .get_focused ()
188+ if not current_focused :
189+ print ("move_focus_direction: could not focus on anything, returning..." )
190+ return
188191if isinstance (current_focused ,lv .keyboard ):
189192print ("focus is on a keyboard, which has its own move_focus_direction: NOT moving" )
190193return
191- if isinstance (current_focused ,lv .dropdown ):
192- if current_focused .is_open ():
193- print ("focus is on an open dropdown, which has its own move_focus_direction: NOT moving" )
194- return
194+ if isinstance (current_focused ,lv .dropdown )and current_focused .is_open ():
195+ print ("focus is on an open dropdown, which has its own move_focus_direction: NOT moving" )
196+ return
195197o = find_closest_obj_in_direction (focus_group ,current_focused ,angle ,True )
196198if o :
197199print ("move_focus_direction: moving focus to:" )