Skip to content

[Feature Request]: Support Ctrl+U to clear password input field #450

@lannuttia

Description

@lannuttia

Feature Request

Currently, cosmic-greeter does not respond to the Ctrl+U keyboard shortcut to clear the password input field. In many Linux environments and greeters (as well as standard shells), Ctrl+U is a common shortcut for "clear line" or "delete from cursor to start." Supporting this would improve the user experience for those accustomed to terminal-style navigation.

Steps to Reproduce

  1. Boot to the cosmic-greeter login screen.
  2. Type a few characters into the password field.
  3. Press Ctrl+U.
  4. Observe that the input is not cleared.

Expected Behavior

Pressing Ctrl+U should clear the current contents of the password input field, similar to how it behaves in a terminal or in other display managers like SDDM or GDM.

Environment Information

  • OS: Gentoo
  • Greeter: cosmic-greeter
  • Version: 619910c
  • Backend: greetd

Additional Context

I would not mind implementing this feature myself as I find myself reflexively hitting Ctrl-U when I mistype my password. I just want to see if there is interest in this before I commit to addressing this and going through the effort to provide a patch upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions