elementary / greeter

Login and Lock Screen greeter for elementary OS and Pantheon, using LightDM
GNU General Public License v3.0
152 stars 39 forks source link

Keyboard layout gets changed when failing at entering password in login form #589

Closed xavierfigueroav closed 1 year ago

xavierfigueroav commented 2 years ago

What Happened?

I have two keyboard layouts added: English (US) and Spanish (Latin American).

Say I get in the login form, the US layout is active and I change it to LATAM by pressing Alt+Shift. If I enter a wrong password, the keyboard layout automatically gets changed back to US.

Say I get in the login form, the LATAM layout is active and I change it to US by pressing Alt+Shift. If I enter a wrong password, the keyboard layout automatically gets changed back to LATAM.

If I get in the login form and I do not change the keyboard layout, no matter if I enter a wrong password, the layout does not get changed, as expected.

Steps to Reproduce

  1. Have at least two keyboard layouts.
  2. Configure (if not present) any shortcut to toggle the keyboard layout.
  3. Get in the login screen, be it by suspending the PC and resuming, by logging out or by turning on the PC if off.
  4. See the panel and memorize the active layout.
  5. Change the layout by using the shortcut from the step 2.
  6. Enter a wrong password and press enter.
  7. After receiving the feedback about the wrong credentials, you will see in the panel how the active layout is the one from step 4 again.

Expected Behavior

In ANY context, I expect the keyboard layout remains the same if I do not explicitly change it.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response