You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / terminal / shortcuts / filters / PassThrough

ABCMeta

IPython.terminal.shortcuts.filters:PassThrough

source: /IPython/terminal/shortcuts/filters.py :179

Signature

def   PassThrough ( )

Members

Summary

A filter allowing to implement pass-through behaviour of keybindings.

Extended Summary

Prompt toolkit key processor dispatches only one event per binding match, which means that adding a new shortcut will suppress the old shortcut if the keybindings are the same (unless one is filtered out).

To stop a shortcut binding from suppressing other shortcuts: - add the pass_through filter to list of filter, and - call pass_through.reply(event) in the shortcut handler.

Aliases

  • IPython.terminal.shortcuts.filters.PassThrough