Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 10: Disable keyboard switching with a shortcut in boot.iso #6105

Conversation

jkonecny12
Copy link
Member

@jkonecny12 jkonecny12 commented Jan 23, 2025

The keyboard switching recently migrated to localed. However, there is a bug reported that the keyboard switching with a keyboard shortcut doesn't work. However, that is not completely true, the keyboard switching correctly works but is not propagated to localed so Anaconda is not aware of the layout switch.
This behavior is much more problematic. Even reporters of the bug assumed that the keyboard switching doesn't work at all. Users could easily drop into a trap of using different keyboard layout on passwords during the installation then what they think is used.

Manual keyboard switching from Anaconda still works as expected. This is workaround which should be removed when bugs on gnome-kiosk are resolved:

NOTE:
Part of this change is code re-factorization which splits the LocaledWrapper class based on the usage (compositor / installation). This change improves readability but also fixes potential bug when xkboptions from compositor are stored to the installed system instead of the user defined ones.

Backport of #6090
Resolves: RHEL-74504

Let's use inheritance to show which code is used for installation and
what for compositor control. It increases the readability and improve
modifications for the future use. To make it correct it is split into
Base class and two specific classes. That way it is crystal clear what
is used for what and there should not be constant fighting between
different usages and side effects.

As a side effect this change will fix a potential issue when installed
system which doesn't selected `options` during the installation will
use options from the running system. This is harder to achieve state but
it could happen.

(cherry picked from commit 120fd8c)

Resolves: RHEL-74504
Related: RHEL-71880
(cherry picked from commit c391efd)

Resolves: RHEL-74504
Related: RHEL-71880
This is a workaround for https://issues.redhat.com/browse/RHEL-71880.

We need this workaround to avoid users confusion. Without this the
keyboard switching will work but it is not visible to users, so they
could easily switch layouts without noticing it and wrote passwords
wrong.

(cherry picked from commit be32044)

Resolves: RHEL-74504
Related: RHEL-71880
@jkonecny12
Copy link
Member Author

/kickstart-test --testtype smoke

@jkonecny12
Copy link
Member Author

/kickstart-test --testtype keyboard

@jkonecny12 jkonecny12 changed the title Rhel 10: block compositor keyboard shortcut RHEL 10: block compositor keyboard shortcut Jan 23, 2025
@jkonecny12 jkonecny12 changed the title RHEL 10: block compositor keyboard shortcut RHEL 10: Disable keyboard switching with a shortcut in boot.iso Jan 24, 2025
Copy link
Contributor

@M4rtinK M4rtinK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. :)

@jkonecny12 jkonecny12 added the ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). label Jan 27, 2025
@jkonecny12 jkonecny12 merged commit 16b027e into rhinstaller:rhel-10 Jan 29, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR can be merged. It should have all BZ flags required for releasing set (usually release+). rhel-10
Development

Successfully merging this pull request may close these issues.

2 participants