AltGr modifier key triggers "blur" event

Bug #1292796 reported by Andreas E.
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While typing a text in an input field, every use of the AltGr modifier (ie. AltGr+Q = @ on German layout) triggers a "blur" event on the input field and the whole document.
This can lead to issues with websites, since the user actually didn't leave the input and is continuously typing.

Testcase: Enter in the interactive console:
document.addEventListener("focus", function(){ console.log("focus "+new Date().getMilliseconds()) })
document.addEventListener("blur", function(){ console.log("blur "+new Date().getMilliseconds()) })
document.addEventListener("keydown", function(){ console.log("keydown "+new Date().getMilliseconds()) })

For a normal key (like Q) I only get the keydown event.

When hitting the AltGr key, I get this:
"blur 358"
"focus 363"
"keydown 369"

This happens also for the Super and Alt keys. But while the Alt key doesn't work as modifier (Alt+Q does not give @), the AltGr key does not work for operating system shortcuts. Its use is purely as keyboard modifier.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: firefox 28.0~b2+build1-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-17.37-generic 3.13.6
Uname: Linux 3.13.0-17-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: andreas 2431 F.... pulseaudio
 /dev/snd/controlC0: andreas 2431 F.... pulseaudio
BuildID: 20140226081007
Channel: Unavailable
CurrentDesktop: Unity
Date: Sat Mar 15 08:46:14 2014
EcryptfsInUse: Yes
ForcedLayersAccel: False
IfupdownConfig:
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
IncompatibleExtensions:
 English (South Africa) Language Pack - <email address hidden>
 English (GB) Language Pack - <email address hidden>
 Deutsch (DE) Language Pack - <email address hidden>
 Default - {972ce4c6-7e08-4474-a285-3208198ce6fd}
InstallationDate: Installed on 2014-02-02 (40 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20140201)
IpRoute:
 default via 192.168.178.1 dev wlan0 proto static
 192.168.178.0/24 dev wlan0 proto kernel scope link src 192.168.178.33 metric 9
MostRecentCrashID: bp-09f2e31c-4075-486b-a99d-c6b752140203
Plugins:
 Shockwave Flash - /usr/lib/flashplugin-installer/libflashplayer.so
 Gnome Shell Integration - /usr/lib/mozilla/plugins/libgnome-shell-browser-plugin.so (gnome-shell)
 iTunes Application Detector - /usr/lib/mozilla/plugins/librhythmbox-itms-detection-plugin.so (rhythmbox-mozilla)
 Java(TM) Plug-in 10.51.2 - /opt/Oracle_Java/jre1.7.0_51/lib/amd64/libnpjp2.so
PrefSources:
 prefs.js
 [Profile]/extensions/{b9db16a4-6edc-47ec-a1f4-b86292ed211d}/defaults/preferences/prefs-dwhelper.js
 /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/<email address hidden>/defaults/preferences/001ubuntu-gnome-mods.js
Profiles: Profile0 (Default) - LastVersion=28.0/20140226081007 (In use)
RelatedPackageVersions:
 gnome-shell 3.10.4-0ubuntu4
 rhythmbox-mozilla 3.0.1-1ubuntu13
RunningIncompatibleAddons: True
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/31/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: 76CN31WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Yoga2
dmi.board.vendor: LENOVO
dmi.board.version: 31900058STD
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo Yoga 2 Pro
dmi.modalias: dmi:bvnLENOVO:bvr76CN31WW:bd10/31/2013:svnLENOVO:pn20266:pvrLenovoYoga2Pro:rvnLENOVO:rnYoga2:rvr31900058STD:cvnLENOVO:ct10:cvrLenovoYoga2Pro:
dmi.product.name: 20266
dmi.product.version: Lenovo Yoga 2 Pro
dmi.sys.vendor: LENOVO

Revision history for this message
Andreas E. (andreas-e) wrote :
Andreas E. (andreas-e)
description: updated
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
[mrs_sheep] (mrs-sheep) wrote :

For me the issue is not-related to Firefox, it occurse in all programs.
Can you try if it has the same effect for you in system programs? [E.g. while renaming a file in Nautilus.]

Revision history for this message
Andreas E. (andreas-e) wrote :

It probably happens to all programs. I get the same events in other browsers like Chromium.
I don't know how I could see which events trigger in Nautilus.

Phlegx (register-phlegx)
Changed in firefox (Ubuntu):
status: Confirmed → Invalid
status: Invalid → Confirmed
Revision history for this message
Phlegx (register-phlegx) wrote :

Sorry for the status change!

1) Nautilus: I have try out to make a folder and name it "abc@abc". All works fine in Nautilus.
2) Chromium: All works fine!
3) Firefox (34.0): If I type in "@abc" in the input field (string starting with @) all works fine and the blur event was not fired. If I type in "abc@" the blur event was fired on hit key ALT-GR.

Revision history for this message
GTPlugins (gtplugins) wrote :

I got the same issue on firefox 41.0.1. This problem only happens when Canonical Firefox Ubuntu modifications addon is active. So I believe the bug is in the addon.

Revision history for this message
Ivan Helguera (gokmar) wrote :

I can confirm the issue is still present and it stems from the Canonical Firefox Ubuntu modifications addon.
This is very serious for Polish users, as AltGr is used to obtain special characters. The default browser is basically unusable for chats, text editing etc.

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.