Conversation
…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>
Amp-Thread-ID: https://ampcode.com/threads/T-01a0a1f2-cda2-7477-9564-53cfcd45dbb7 Co-authored-by: Amp <amp@ampcode.com>
h14h
force-pushed
the
lock-swallow-wake-key
branch
from
September 14, 2026 23:15
03864a4 to
d64d6f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withKeys.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