Skip to content

Clear and swallow the lock-screen wake key so it is not typed as a password character - #11858

Open
h14h wants to merge 3 commits into
omacom:quattrofrom
h14h:lock-swallow-wake-key
Open

h14h wants to merge 3 commits into
omacom:quattrofrom
h14h:lock-swallow-wake-key

Conversation

@h14h

@h14h h14h commented Sep 14, 2026

Copy link
Copy Markdown

Problem

Waking a blanked lock screen with a keypress also inserts that character into the password field, so you have to delete it before typing the password.

Hyprland can enable DPMS on the same key that Qt still delivers to the focused TextInput. After idle blank, any half-typed password is also guesswork.

Change

The lock already tracks displaysBlank. When that is true, the password field now treats the wake key like Escape: intercept it with Keys.BeforeItem, request a wake, clear the buffered password, and accept the event so it is not typed.

Verified locally on Omarchy 4.0.3: lock, wait for the panel to blank, press Space — the screen wakes, the field is empty, and no password dot appears.

Tests

./test/shell.d/lock-wake-key-test.sh

h14h and others added 3 commits September 14, 2026 17:26
…racter

Hyprland can enable DPMS on the same keypress that Qt still delivers to the
password field. When the lock has blanked the displays, intercept that key
before TextInput inserts it, wake the screen, and ignore the character.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a1f2-cda2-7477-9564-53cfcd45dbb7
Co-authored-by: Amp <amp@ampcode.com>
Treat the wake key like Escape: drop the buffered password and swallow the
key so it is not inserted. After idle blank, the user cannot reasonably
know what was already typed.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0a1f2-cda2-7477-9564-53cfcd45dbb7
Co-authored-by: Amp <amp@ampcode.com>
@h14h
h14h force-pushed the lock-swallow-wake-key branch from 03864a4 to d64d6f2 Compare September 14, 2026 23:15
@h14h h14h changed the title Swallow the lock-screen wake key so it is not typed as a password character Clear and swallow the lock-screen wake key so it is not typed as a password character Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant