in src/pathpicker/screen_control.py [0:0]
def select_x_mode(self, key: str) -> None:
if LABELS.index(key) >= len(self.line_objs):
return
line_obj = self.line_objs[LABELS.index(key) - self.scroll_offset]
if isinstance(line_obj, LineMatch):
line_match_index = self.line_matches.index(line_obj)
self.hover_index = line_match_index
self.toggle_select()