GNOME Bugzilla – Bug 737346
Please implement that Ctrl + u clears the password prompt
Last modified: 2014-09-26 20:12:16 UTC
Forwarding bug report 658048 from the Debian BTS [1]. gdm3 does not appear to honor typing Ctrl-u to clear password entry. This behavior is common for unix password prompts, and lacking this behavior is a regression from gdm. [1] https://bugs.debian.org/658048
previous discussion happened on bug 541958 which was NOTABUG'd, but now the login screen doesn't use GTK+ for entries, so maybe this should be revisited. What do you think, Allan? Yay, or nay?
I actually see nothing wrong with just adding Ctrl-u as a binding in GtkEntry - I've just done that.
... in which case doing the same in StEntry too makes a lot of sense
Created attachment 287167 [details] [review] st-entry: Implement ctrl-u keybinding to clear the entry This keybinding is well-established on the CLI, and adding support for it is cheap ... I should add that I'm only aware of ctrl-u as "delete to the beginning of the line" keybinding (see readline); so not sure we'd rather want that instead of what the patch implements ... (of course in the most common case - cursor at the line end - there is no difference at all)
Created attachment 287168 [details] [review] st-entry: Implement ctrl-u keybinding to clear the entry For what it's worth, this is the "other" behavior (readline default, ...) Both patches are trivial enough, so I don't care much (though we should pick whatever GTK ends up with of course)
I ended up with Ctrl-u delete to start of line Ctrl-k delete to end of line
Created attachment 287208 [details] [review] st-entry: Implement Ctrl-u / Ctrl-k keybindings OK, let's go with that as well then.
Attachment 287208 [details] pushed as 67b14d5 - st-entry: Implement Ctrl-u / Ctrl-k keybindings
\o/