gnome-shell/js/gdm
Florian Müllner 6f4529e44d
authPrompt: Consume cancel key event
The auth prompt currently propagates all key presses, even the
Escape press that is used to cancel it.

On the lock screen that means that the same event that cancels
the prompt (and switches back to the clock) is *also* propagated
to the handler that activates the prompt on key press.

That handler doesn't do anything when the prompt is already visible,
which is the case when the transition to the clock is animated.

However when animations are disabled, canceling the prompt will
result in a new prompt getting created immediately, and the login
screen is stuck on the prompt.

Fix this by not propagating key events that are used to cancel
the prompt.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3317>
(cherry picked from commit e7dc0de75e)
2024-05-22 16:38:35 +02:00
..
authList.js cleanup: Remove spaces in object literals 2023-08-09 15:10:37 +00:00
authPrompt.js authPrompt: Consume cancel key event 2024-05-22 16:38:35 +02:00
batch.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
credentialManager.js js: Port to modules 2023-08-06 13:02:49 +02:00
loginDialog.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
oVirt.js js: Port to modules 2023-08-06 13:02:49 +02:00
realmd.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
util.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
vmware.js js: Port to modules 2023-08-06 13:02:49 +02:00