Skip to content

delay with escape key #86

@idnael

Description

@idnael

I want to use the Escape key to skip a text prompt.

The problem: It takes 3 seconds from when I press the Escape key, for the execute() method to return.
Why?

If I use "c-d", it works fine.

from InquirerPy import inquirer

prompt = inquirer.text(
    message="Enter your name:",
    mandatory=False,
    default="Hello",
    keybindings= {
        "skip": [{"key": "escape"}],
    },
)

name = prompt.execute()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions