Skip to content

Require the user to press Enter for confirm type #48

Description

@stratacast

One thing that bothers me about this implementation of inquirer is how pressing y/n jumps immediately to the next prompt. I think for the last X decades we've been conditioned to type y/n and then hit enter. Can this be changed?

I think all it needs is to make changes to confirm.py by changing these decorators

@manager.registry.add_binding('y')
@manager.registry.add_binding('Y')

on lines 66,67 to

@manager.registry.add_binding('y', 'Enter')
@manager.registry.add_binding('Y', 'Enter')

And same for the No prompts on lines 60,61.

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