summaryrefslogtreecommitdiffstats
path: root/examples/ptpython_config/config.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-17 07:40:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-17 07:40:54 +0000
commit8188ef390db734738d245336d1d619516ca746d4 (patch)
tree36dc902621c535d2567244ce020d614858c9ddee /examples/ptpython_config/config.py
parentAdding upstream version 3.0.16. (diff)
downloadptpython-8188ef390db734738d245336d1d619516ca746d4.tar.xz
ptpython-8188ef390db734738d245336d1d619516ca746d4.zip
Adding upstream version 3.0.19.upstream/3.0.19
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples/ptpython_config/config.py')
-rw-r--r--examples/ptpython_config/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ptpython_config/config.py b/examples/ptpython_config/config.py
index 8532f93..2427572 100644
--- a/examples/ptpython_config/config.py
+++ b/examples/ptpython_config/config.py
@@ -157,7 +157,7 @@ def configure(repl):
@repl.add_key_binding("j", "j", filter=ViInsertMode())
def _(event):
" Map 'jj' to Escape. "
- event.cli.key_processor.feed(KeyPress("escape"))
+ event.cli.key_processor.feed(KeyPress(Keys("escape")))
"""
# Custom key binding for some simple autocorrection while typing.