Bug 405616 - having french layout breaks alt-2 and alt-7 shortcuts in firefox
Summary: having french layout breaks alt-2 and alt-7 shortcuts in firefox
Status: RESOLVED DUPLICATE of bug 402913
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-18 22:15 UTC by foormea
Modified: 2021-03-20 01:51 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
current config when ALT+2/7 FF problem (332.12 KB, image/png)
2019-03-19 08:37 UTC, Mouth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description foormea 2019-03-18 22:15:27 UTC
When I add French layout to KDE Plasma in
   System Settings
      Input Devices
         Keyboard Hardware and Layout
my shortcuts alt-2 and alt-7 get broken (e.g. they don't respond in firefox), while all other alt- shortcuts continue working just fine.

If I re-assign alt-2 and alt-7 to whatever random global shortcut and immediately unassign, alt-2 and alt-7 restart working.
If I then put the computer to sleep, then get out of sleep mode, the shortcuts are broken again.

Some xev output:

For alt-1 (which works just fine):

KeyPress event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3799921, (664,42), root:(2588,1031),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3800962, (664,42), root:(2588,1031),
    state 0x18, keycode 10 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XmbLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3801026, (664,42), root:(2588,1031),
    state 0x18, keycode 10 (keysym 0x31, 1), same_screen YES,
    XLookupString gives 1 bytes: (31) "1"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3801730, (664,42), root:(2588,1031),
    state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False








For alt-2, when it's broken:

KeyPress event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3802322, (664,42), root:(2588,1031),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x4800001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x4800001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  2   8   0   0   0   0   0   0   1   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3802849, (664,42), root:(2588,1031),
    state 0x18, keycode 11 (keysym 0x32, 2), same_screen YES,
    XLookupString gives 1 bytes: (32) "2"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4800001,
    root 0x4ed, subw 0x0, time 3804682, (664,42), root:(2588,1031),
    state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

---------




STEPS TO REPRODUCE
1. This is Kubuntu 19.04 up-to-date (2019-03-18) after narrowing down the problem to kxdb.
2. System Settings > Input Devices > Keyboard Hardware and Layout > Layouts > Configure layouts ; first is US qwerty, second if standard FR azerty.
3. As soon as I press "Apply" if FR azerty is present (I've tried a few variations for FR and got the same result), the problem appears.

OBSERVED RESULT
alt-2 and alt-7 specifically get broken in firefox

EXPECTED RESULT
no alt- shortcut gets broken

SOFTWARE/OS VERSIONS
Kubuntu 19.04
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.11.3
Comment 1 Mouth 2019-03-19 08:37:41 UTC
Created attachment 118904 [details]
current config when ALT+2/7 FF problem


Hello, I'm able to reproduce the same bug on (up to date) Arch :
(Keyboard Layouts installed : FR and US)


SOFTWARE/OS VERSIONS :
Kernel: x86_64 Linux 5.0.2-arch1-1-ARCH
DE: KDE 5.56.0 / Plasma 5.15.3
qt5-base 5.12.2-1


:~ $ pacman -Q | grep xorg
xorg-bdftopcf 1.1-1
xorg-font-util 1.3.1-2
xorg-font-utils 7.6-5
xorg-fonts-alias 1.0.3-2
xorg-fonts-encodings 1.0.4-5
xorg-fonts-type1 7.7-3
xorg-mkfontscale 1.2.0-2
xorg-server 1.20.4-1
xorg-server-common 1.20.4-1
xorg-server-xwayland 1.20.4-1
xorg-setxkbmap 1.3.1-2
xorg-xauth 1.0.10-2
xorg-xdpyinfo 1.3.2-2
xorg-xkbcomp 1.4.2-1
xorg-xmessage 1.0.5-1
xorg-xprop 1.2.4-1
xorg-xrandr 1.5.0-2
xorg-xrdb 1.2.0-1
xorg-xset 1.2.4-1
xorg-xsetroot 1.1.2-1
xorgproto 2018.4-1
 ~
xkeyboard-config 2.26-2
libkeybinder3 0.3.2-2




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




Some xev output: (french layout selected)


#
#   Alt + 1
#

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51544697, (708,666), root:(708,728),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51546991, (708,666), root:(708,728),
    state 0x8, keycode 10 (keysym 0x26, ampersand), same_screen YES,
    XLookupString gives 1 bytes: (26) "&"
    XmbLookupString gives 1 bytes: (26) "&"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51547093, (708,666), root:(708,728),
    state 0x8, keycode 10 (keysym 0x26, ampersand), same_screen YES,
    XLookupString gives 1 bytes: (26) "&"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51547516, (708,666), root:(708,728),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False



#
#   Alt + 2
#

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51615247, (715,530), root:(715,592),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967275 8   0   0   0   0   0   0   1   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51615569, (715,530), root:(715,592),
    state 0x8, keycode 11 (keysym 0xe9, eacute), same_screen YES,
    XLookupString gives 2 bytes: (c3 a9) "é"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51615672, (715,530), root:(715,592),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False



#
#   Alt + 3
#

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51661646, (806,527), root:(806,589),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51661791, (806,527), root:(806,589),
    state 0x8, keycode 12 (keysym 0x22, quotedbl), same_screen YES,
    XLookupString gives 1 bytes: (22) """
    XmbLookupString gives 1 bytes: (22) """
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51661933, (806,527), root:(806,589),
    state 0x8, keycode 12 (keysym 0x22, quotedbl), same_screen YES,
    XLookupString gives 1 bytes: (22) """
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51661958, (806,527), root:(806,589),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False



#
#   Alt + 7
#

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51700084, (839,670), root:(839,732),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967275 0   1   0   0   0   0   0   1   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51701603, (839,670), root:(839,732),
    state 0x8, keycode 16 (keysym 0xe8, egrave), same_screen YES,
    XLookupString gives 2 bytes: (c3 a8) "è"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x18e, subw 0x0, time 51701769, (839,670), root:(839,732),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Comment 2 9mwebmail 2020-08-20 21:58:35 UTC
Hi all, I'm new to posting bugs but just to mention that I get a similar bug with French layout, breaking alt-2 in Firefox and Thnuderbird, but not breaking alt-7 in Firefox for me.
I hope this can get fixed. Thanks all for your work.
Comment 3 user75319 2021-01-29 19:41:08 UTC
Reproducing it too. For keys : ALT+2 (or ALT+é), ALT+7 (or ALT+è)
But also for Super+A Super+S (Super = windows key)
Overall, open the preview when selecting layout and test combinaisons. Somes doesn't hightlight the second key

----------------------
xev output for ALT+é :

KeyPress event, serial 40, synthetic NO, window 0x4a00001,
    root 0x6d7, subw 0x0, time 878595, (646,-274), root:(646,344),
    state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x4a00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x4a00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967270 8   0   0   0   0   0   0   1   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x4a00001,
    root 0x6d7, subw 0x0, time 878835, (646,-274), root:(646,344),
    state 0x18, keycode 11 (keysym 0xe9, eacute), same_screen YES,
    XLookupString gives 2 bytes: (c3 a9) "é"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4a00001,
    root 0x6d7, subw 0x0, time 878851, (646,-274), root:(646,344),
    state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

-------------------
xev output for Super+s

KeyPress event, serial 40, synthetic NO, window 0x4c00001,
    root 0x6d7, subw 0x0, time 1581435, (866,-342), root:(866,276),
    state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

FocusOut event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 40, synthetic NO, window 0x4c00001,
    mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 40, synthetic NO, window 0x0,
    keys:  4294967270 0   0   0   4294967168 0   0   0   0   0   0   0   0   0   0   0   
           32  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x6d7, subw 0x0, time 1582435, (866,-342), root:(866,276),
    state 0x50, keycode 39 (keysym 0x73, s), same_screen YES,
    XLookupString gives 1 bytes: (73) "s"
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x4c00001,
    root 0x6d7, subw 0x0, time 1583171, (866,-342), root:(866,276),
    state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

------------------
kde-plasma: 5.20.5
kde-frameworks: 5.77.0
qt: 5.15.2
Comment 4 Nate Graham 2021-03-20 01:51:43 UTC

*** This bug has been marked as a duplicate of bug 402913 ***