Exemplo n.º 1
0
def _get_bottom_toolbar_tokens(cli, python_input):
    return [(Token.Toolbar.Status, ' ')] + get_inputmode_tokens(
        cli, python_input) + [
            (Token.Toolbar.Status, ' '),
            (Token.Toolbar.Status.Key, '[Space]'),
            (Token.Toolbar.Status, ' Toggle '),
            (Token.Toolbar.Status.Key, '[Tab]'),
            (Token.Toolbar.Status, ' Focus '),
            (Token.Toolbar.Status.Key, '[Enter]'),
            (Token.Toolbar.Status, ' Accept '),
            (Token.Toolbar.Status.Key, '[F1]'),
            (Token.Toolbar.Status, ' Help '),
        ]
Exemplo n.º 2
0
def _get_bottom_toolbar_tokens(cli, python_input):
    return [
        (Token.Toolbar.Status, ' ')
    ] + get_inputmode_tokens(cli, python_input) + [
        (Token.Toolbar.Status, ' '),
        (Token.Toolbar.Status.Key, '[Space]'),
        (Token.Toolbar.Status, ' Toggle '),
        (Token.Toolbar.Status.Key, '[Tab]'),
        (Token.Toolbar.Status, ' Focus '),
        (Token.Toolbar.Status.Key, '[Enter]'),
        (Token.Toolbar.Status, ' Accept '),
        (Token.Toolbar.Status.Key, '[F1]'),
        (Token.Toolbar.Status, ' Help '),
    ]
Exemplo n.º 3
0
def _get_bottom_toolbar_tokens(cli, python_input):
    @if_mousedown
    def f1(cli, mouse_event):
        _toggle_help(cli)

    @if_mousedown
    def tab(cli, mouse_event):
        _select_other_window(cli)

    return [(Token.Toolbar.Status, ' ')] + get_inputmode_tokens(
        cli, python_input) + [
            (Token.Toolbar.Status, ' '),
            (Token.Toolbar.Status.Key, '[Space]'),
            (Token.Toolbar.Status, ' Toggle '),
            (Token.Toolbar.Status.Key, '[Tab]', tab),
            (Token.Toolbar.Status, ' Focus ', tab),
            (Token.Toolbar.Status.Key, '[Enter]'),
            (Token.Toolbar.Status, ' Accept '),
            (Token.Toolbar.Status.Key, '[F1]', f1),
            (Token.Toolbar.Status, ' Help ', f1),
        ]
Exemplo n.º 4
0
def _get_bottom_toolbar_tokens(cli, python_input):
    @if_mousedown
    def f1(cli, mouse_event):
        _toggle_help(cli)

    @if_mousedown
    def tab(cli, mouse_event):
        _select_other_window(cli)

    return [
        (Token.Toolbar.Status, ' ')
    ] + get_inputmode_tokens(cli, python_input) + [
        (Token.Toolbar.Status, ' '),
        (Token.Toolbar.Status.Key, '[Space]'),
        (Token.Toolbar.Status, ' Toggle '),
        (Token.Toolbar.Status.Key, '[Tab]', tab),
        (Token.Toolbar.Status, ' Focus ', tab),
        (Token.Toolbar.Status.Key, '[Enter]'),
        (Token.Toolbar.Status, ' Accept '),
        (Token.Toolbar.Status.Key, '[F1]', f1),
        (Token.Toolbar.Status, ' Help ', f1),
    ]
Exemplo n.º 5
0
def _get_bottom_toolbar_tokens(cli, python_input):
    @if_mousedown
    def f1(cli, mouse_event):
        _toggle_help(cli)

    @if_mousedown
    def tab(cli, mouse_event):
        _select_other_window(cli)

    return (
        [(Token.Toolbar.Status, " ")]
        + get_inputmode_tokens(cli, python_input)
        + [
            (Token.Toolbar.Status, " "),
            (Token.Toolbar.Status.Key, "[Space]"),
            (Token.Toolbar.Status, " Toggle "),
            (Token.Toolbar.Status.Key, "[Tab]", tab),
            (Token.Toolbar.Status, " Focus ", tab),
            (Token.Toolbar.Status.Key, "[Enter]"),
            (Token.Toolbar.Status, " Accept "),
            (Token.Toolbar.Status.Key, "[F1]", f1),
            (Token.Toolbar.Status, " Help ", f1),
        ]
    )