euporie.core.key_binding.key_processor
Modify the KeyProcessor to remove any timeout after an escape key press.
Functions
|
Get the current active (running) Application. |
Classes
|
|
|
A subclass of prompt_toolkit's keyprocessor. |
|
List of keys for use in key bindings. |
|
Additional key definitions. |
alias of |
- class euporie.core.key_binding.key_processor.KeyProcessor(*args: Any, **kwargs: Any)
Bases:
KeyProcessor
A subclass of prompt_toolkit’s keyprocessor.
This adds an exception to the auto-flush timeout so that the input is flushed immediately if the key pressed is the escape key.
- await_key(key: Keys | MoreKeys, timeout: float = 1.0) None
Wait for a particular key, processing it before all other keys.
- Parameters:
key – The key to wait for
timeout – How long to wait for the key, in seconds
- feed(key_press: KeyPress, first: bool = False) None
Add a new
KeyPress
to the input queue. (Don’t forget to call process_keys in order to process the queue.)- Parameters:
first – If true, insert before everything else.