euporie.core.commands.KeyPressEvent

class euporie.core.commands.KeyPressEvent(key_processor_ref: ReferenceType[KeyProcessor], arg: str | None, key_sequence: list[prompt_toolkit.key_binding.key_processor.KeyPress], previous_key_sequence: list[prompt_toolkit.key_binding.key_processor.KeyPress], is_repeat: bool)

Key press event, delivered to key bindings.

Parameters:
  • key_processor_ref – Weak reference to the KeyProcessor.

  • arg – Repetition argument.

  • key_sequence – List of KeyPress instances.

  • previouskey_sequence – Previous list of KeyPress instances.

  • is_repeat – True when the previous event was delivered to the same handler.