示例#1
0
        def _up(event: E) -> None:
            if self._selected_index == 0:
                focus_previous(event)
                return

            self._selected_index = max(0, self._selected_index - 1)
示例#2
0
 def _(event):
     focus_previous(event)
示例#3
0
 def stab_(event):
     focus_previous(event)
示例#4
0
 def decrease_preference(event):
     modified = self._modify_setting(SettingsModifyMode.DECREASE)
     if not modified:  # treat as regular event
         focus_previous(event)
示例#5
0
 def prev_option(event):
     focus_previous(event)
示例#6
0
def stab_(event):
    updateState()
    #refresh UI
    focus_previous(event)
示例#7
0
 def _(event):
     if self.index <= 0:
         focus_previous(event)
     else:
         self.previous()
示例#8
0
文件: view.py 项目: dagraham/etm-mv
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)