diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:58 +0000 |
commit | 302975348b0dbd4f0ddbb699df76ee05ffbefaaf (patch) | |
tree | 761e94c321db07dec57816b4ffdd36a13d67662d /ptpython/key_bindings.py | |
parent | Releasing debian version 3.0.16-2. (diff) | |
download | ptpython-302975348b0dbd4f0ddbb699df76ee05ffbefaaf.tar.xz ptpython-302975348b0dbd4f0ddbb699df76ee05ffbefaaf.zip |
Merging upstream version 3.0.19.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/key_bindings.py')
-rw-r--r-- | ptpython/key_bindings.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ptpython/key_bindings.py b/ptpython/key_bindings.py index 86317f9..ae23a3d 100644 --- a/ptpython/key_bindings.py +++ b/ptpython/key_bindings.py @@ -203,7 +203,7 @@ def load_python_bindings(python_input): @handle("c-c", filter=has_focus(python_input.default_buffer)) def _(event): - " Abort when Control-C has been pressed. " + "Abort when Control-C has been pressed." event.app.exit(exception=KeyboardInterrupt, style="class:aborting") return bindings @@ -222,7 +222,7 @@ def load_sidebar_bindings(python_input): @handle("c-p", filter=sidebar_visible) @handle("k", filter=sidebar_visible) def _(event): - " Go to previous option. " + "Go to previous option." python_input.selected_option_index = ( python_input.selected_option_index - 1 ) % python_input.option_count @@ -231,7 +231,7 @@ def load_sidebar_bindings(python_input): @handle("c-n", filter=sidebar_visible) @handle("j", filter=sidebar_visible) def _(event): - " Go to next option. " + "Go to next option." python_input.selected_option_index = ( python_input.selected_option_index + 1 ) % python_input.option_count @@ -240,14 +240,14 @@ def load_sidebar_bindings(python_input): @handle("l", filter=sidebar_visible) @handle(" ", filter=sidebar_visible) def _(event): - " Select next value for current option. " + "Select next value for current option." option = python_input.selected_option option.activate_next() @handle("left", filter=sidebar_visible) @handle("h", filter=sidebar_visible) def _(event): - " Select previous value for current option. " + "Select previous value for current option." option = python_input.selected_option option.activate_previous() @@ -257,7 +257,7 @@ def load_sidebar_bindings(python_input): @handle("enter", filter=sidebar_visible) @handle("escape", filter=sidebar_visible) def _(event): - " Hide sidebar. " + "Hide sidebar." python_input.show_sidebar = False event.app.layout.focus_last() |