diff options
| author | Milkey Mouse <milkeymouse@meme.institute> | 2018-12-20 12:19:21 -0800 |
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-12-23 12:08:03 +0100 |
| commit | 4363430d8d4648d4e3c69f92f8f7cb40560aa2d5 (patch) | |
| tree | 41b9da8bfd70699d5d2132152ee08fbfa2f81651 | |
| parent | 84426bbde652f868a09ba0725e26a3956fe8a875 (diff) | |
swaylock: Clear password buffer on Ctrl-C
I've got in the habit of using Ctrl-C with login(1) to restart password entry.
If Sway does the same thing I don't have to retrain my login muscle memory ;)
| -rw-r--r-- | password.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -165,6 +165,7 @@ void swaylock_handle_key(struct swaylock_state *state, schedule_indicator_clear(state); schedule_password_clear(state); break; + case XKB_KEY_c: /* fallthrough */ case XKB_KEY_u: if (state->xkb.control) { clear_password_buffer(&state->password); |
