Changing keyboard layout with alt+shift always triggers "ui.key.menuAccessKey" on Wayland

Bug #1712200 reported by Thanos Apostolou
62
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
New
Undecided
Unassigned
firefox (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Steps to reproduce:
1. Install Ubuntu 17.10 from final ISO-image (cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]), select Russian keyboard layout on installation
3. Boot into installed system and log-in
4. Try to change keyboard layout - what is interesting both keyboard shortcuts - <Alt+Shift> and <Super+Space> switch layouts.
5. Open Firefox
6. Change keyboard layout with <Alt+Shift>

Expected results:
* keyboard layout is switched, Firefox does not react on keyboard layout switching

Actual results:
* during switching of keyboard layout (on clicking <Alt> key) Firefox shows its mnemonics (underlines in menu) and distracts user. After pressing <Shift> key keyboard layout is switched, but focus is placed on Firefox menubar. So user needs to change the focus with keyboard (for example <Esc> key) or mouse click.

Notes:
It seems that <Alt+Shift> keyboard layout switcher was quietly set in Ubiquity (see bug 1242572).

-----------------------------------------------------------------------------

Original bug description below:
I'm on Ubuntu 17.10 with artful-proposed enabled.

Changing keyboard layout with alt+shift always triggers "show menu"on Wayland, which makes firefox unusable for users who don't know how to disable the value "ui.key.menuAccessKeyFocuses" from about:config.

Is there any fix? Or maybe you can set "ui.key.menuAccessKeyFocuses" to false by default?

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: firefox 54.0+build3-0ubuntu1
ProcVersionSignature: Ubuntu 4.12.0-12.13-generic 4.12.8
Uname: Linux 4.12.0-12-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.20.6-0ubuntu6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: thanos 25842 F.... pulseaudio
 /dev/snd/controlC0: thanos 25842 F.... pulseaudio
 /dev/snd/controlC1: thanos 25842 F.... pulseaudio
BuildID: 20170616154447
Channel: Unavailable
CurrentDesktop: GNOME
Date: Mon Aug 21 23:42:26 2017
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
InstallationDate: Installed on 2017-08-21 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170820)
IpRoute:
 default via 192.168.2.1 dev wlp4s7 proto static metric 600
 169.254.0.0/16 dev wlp4s7 scope link metric 1000
 192.168.2.0/24 dev wlp4s7 proto kernel scope link src 192.168.2.2 metric 600
Locales: extensions.sqlite corrupt or missing
Plugins: Shockwave Flash - /usr/lib/flashplugin-installer/libflashplayer.so
PrefSources: prefs.js
Profiles: Profile0 (Default) - LastVersion=54.0/20170616154447 (In use)
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
RunningIncompatibleAddons: False
SourcePackage: firefox
Themes: extensions.sqlite corrupt or missing
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/09/2014
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F7d
dmi.board.name: GA-970A-DS3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF7d:bd09/09/2014:svnGigabyteTechnologyCo.,Ltd.:pnGA-970A-DS3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-970A-DS3:rvr:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-970A-DS3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
Thanos Apostolou (thanosapostolou) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Got this bug with Firefox 50.1.0 on Ubuntu Artful x86 with "ubuntu on wayland" session.

I have two keyboard layouts - English and Russian, I switch them with <Alt+Shift> combination. If I switch language in Firefox it highlights its menu items and distracts me.
Please fix this bug. I do not plan to change keyboard layout switching shortcut.

tags: removed: amd64
Norbert (nrbrtx)
tags: added: wayland
removed: package-from-proposed
Revision history for this message
Norbert (nrbrtx) wrote :

Same with Firefox 55.0.2.

Revision history for this message
Alexey Kulik (doctor-rover) wrote :

The bug still exists after upgrade of Firefox to version 56.0.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

No, we definitely don't want to set ui.key.menuAccessKeyFocuses to false since that's how you get the full traditional File/Edit/View/etc. menu.

The default keyboard layout switch shortcut in Ubuntu is Super+Space not Alt+Shift.

Changed in firefox (Ubuntu):
importance: Undecided → Low
Revision history for this message
Norbert (nrbrtx) wrote :

I have just made a clean installation of Ubuntu.

artful64@artful64:~$ head /etc/apt/sources.list -n2
#deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]/ artful main restricted

During installation I set Russian keyboard layout.
On first login I launched Firefox and accidentally pressed <Alt+Shift>. And it switched the layout. Of course <Super+Space> works too.

But Firefox distracts me if I press <Alt+Shift>. So you have set <Alt+Shift> as layout switcher quietly in Ubiquity (see bug 1242572).

artful64@artful64:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="17.10 (Artful Aardvark)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.10"
VERSION_ID="17.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=artful
UBUNTU_CODENAME=artful
artful64@artful64:~$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,ru"
XKBVARIANT=","
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"

BACKSPACE="guess"
artful64@artful64:~$

It seems that this is severe bug.

Revision history for this message
Norbert (nrbrtx) wrote : apport information

AddonCompatCheckDisabled: False
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: artful64 1468 F.... pulseaudio
BuildID: 20171003222101
Channel: Unavailable
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 17.10
Extensions: extensions.sqlite corrupt or missing
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IncompatibleExtensions: Unavailable (corrupt or non-existant compatibility.ini or extensions.sqlite)
InstallationDate: Installed on 2017-10-21 (0 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
IpRoute:
 default via 192.168.3.1 dev wlp2s0 proto static metric 600
 169.254.0.0/16 dev wlp2s0 scope link metric 1000
 192.168.3.0/24 dev wlp2s0 proto kernel scope link src 192.168.3.15 metric 600
Locales: extensions.sqlite corrupt or missing
Package: firefox 56.0+build6-0ubuntu1
PackageArchitecture: amd64
PrefSources: prefs.js
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Profiles: Profile0 (Default) - LastVersion=56.0/20171003222101 (In use)
RunningIncompatibleAddons: False
Tags: wayland-session artful
Themes: extensions.sqlite corrupt or missing
Uname: Linux 4.13.0-16-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 02/12/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: UX32A.216
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UX32A
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrUX32A.216:bd02/12/2014:svnASUSTeKCOMPUTERINC.:pnUX32A:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnUX32A:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.family: UX
dmi.product.name: UX32A
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

tags: added: apport-collected wayland-session
Revision history for this message
Norbert (nrbrtx) wrote : AlsaInfo.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : CRDA.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : Dependencies.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : IpAddr.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : IwConfig.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : JournalErrors.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : Lspci.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : PciNetwork.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : Prefs.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : ProcEnviron.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : PulseList.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : RfKill.txt

apport information

Revision history for this message
Norbert (nrbrtx) wrote : WifiSyslog.txt

apport information

Norbert (nrbrtx)
description: updated
Norbert (nrbrtx)
description: updated
Revision history for this message
asdqweasd (asdqweasd) wrote :

Is the bug fixed? Luckly it isn't reproduced anymore on my machine (Ubuntu 17.10, Firefox 57.0.3).

Revision history for this message
asdqweasd (asdqweasd) wrote :

The bug happens again on Ubuntu 18.04

Norbert (nrbrtx)
tags: removed: artful
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.