mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-10 17:53:09 +00:00
Switch keyboard layouts with click, not key combo, in anaconda
With anaconda on Wayland (in F42+), switching layout by key combo does not work and it seems like it won't be fixed any time soon, so let's do it by clicking instead. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
590ee0c90e
commit
83e48505c9
15
lib/utils.pm
15
lib/utils.pm
@ -116,9 +116,18 @@ sub desktop_switch_layout {
|
|||||||
# if already selected, we're good
|
# if already selected, we're good
|
||||||
return if (check_screen "${environment}_layout_${layout}", 3);
|
return if (check_screen "${environment}_layout_${layout}", 3);
|
||||||
# otherwise we need to switch
|
# otherwise we need to switch
|
||||||
my $switcher = "alt-shift"; # anaconda
|
# in anaconda f42+ key combo switching doesn't work and can't be
|
||||||
$switcher = "super-spc" if $environment eq 'gnome';
|
# fixed - https://bugzilla.redhat.com/show_bug.cgi?id=2319565
|
||||||
# KDE? not used yet
|
if ($environment eq 'anaconda') {
|
||||||
|
my $count = 3;
|
||||||
|
while ($count) {
|
||||||
|
assert_and_click "anaconda_layout_indicator";
|
||||||
|
return if (check_screen "anaconda_layout_${layout}", 3);
|
||||||
|
$count--;
|
||||||
|
}
|
||||||
|
die "never managed to switch to layout ${layout}!";
|
||||||
|
}
|
||||||
|
my $switcher = "super-spc"; # gnome; FIXME for other envs if used
|
||||||
# FIXME we use send_key_until_needlematch because sometimes the
|
# FIXME we use send_key_until_needlematch because sometimes the
|
||||||
# switch just doesn't work in gdm:
|
# switch just doesn't work in gdm:
|
||||||
# https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6066#note_1707051
|
# https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6066#note_1707051
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"height": 16,
|
||||||
|
"type": "match",
|
||||||
|
"width": 20,
|
||||||
|
"xpos": 345,
|
||||||
|
"ypos": 381
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"anaconda_layout_indicator"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda/install_process/layout_indicator-20250203.png
Normal file
BIN
needles/anaconda/install_process/layout_indicator-20250203.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
Loading…
Reference in New Issue
Block a user