def _up(event: E) -> None: if self._selected_index == 0: focus_previous(event) return self._selected_index = max(0, self._selected_index - 1)
def _(event): focus_previous(event)
def stab_(event): focus_previous(event)
def decrease_preference(event): modified = self._modify_setting(SettingsModifyMode.DECREASE) if not modified: # treat as regular event focus_previous(event)
def prev_option(event): focus_previous(event)
def stab_(event): updateState() #refresh UI focus_previous(event)
def _(event): if self.index <= 0: focus_previous(event) else: self.previous()
def menu(event): " Focus menu. " if not event.app.layout.has_focus(root_container.window): event.app.layout.focus(root_container.window) else: focus_previous(event)