Python prompt_toolkit.keys.Keys.ControlQ() Examples
The following are 1
code examples of prompt_toolkit.keys.Keys.ControlQ().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
prompt_toolkit.keys.Keys
, or try the search function
.
Example #1
Source File: test_key_binding.py From python-prompt-toolkit with BSD 3-Clause "New" or "Revised" License | 6 votes |
def test_feed_several(processor, handlers): with set_dummy_app(): # First an unknown key first. processor.feed(KeyPress(Keys.ControlQ, "")) processor.process_keys() assert handlers.called == [] # Followed by a know key sequence. processor.feed(KeyPress(Keys.ControlX, "")) processor.feed(KeyPress(Keys.ControlC, "")) processor.process_keys() assert handlers.called == ["controlx_controlc"] # Followed by another unknown sequence. processor.feed(KeyPress(Keys.ControlR, "")) processor.feed(KeyPress(Keys.ControlS, "")) # Followed again by a know key sequence. processor.feed(KeyPress(Keys.ControlD, "")) processor.process_keys() assert handlers.called == ["controlx_controlc", "control_d"]