Wayland causes arrow key scroll lock behavior when using Japanese or US-intl keyboard layouts
Affected version
- Ubuntu 21.04
- Mutter 3.38.4-1ubuntu2
- Wayland
Bug summary
After upgrading to Ubuntu 21.04 with Wayland as default, the arrow keys on my Japanese 108-key USB keyboard scroll in LibreOffice Calc as though scroll lock is toggled on (even though the scroll lock light is not on) instead of moving the cell in focus. (This happens with the US-intl keyboard layout too.) The arrow keys work as expected in other programs though, including LibreOffice Writer.
If I switch to the default US keyboard layout, the arrow keys on the same keyboard work properly: moving the cell in focus.
I tried removing grp_led:scroll from XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll" in /etc/default/keyboard, but that did not fix it.
I also tried uninstalling LibreOffice and removing the config files as explained here, but that didn't fix it either.
This was not a problem in Ubuntu 20.10 and the Japanese USB keyboard arrow keys work correctly in LibreCalc on Windows, so the issue appears to be specific to Ubuntu 21.04, not LibreOffice, nor this keyboard.
As a workaround, if I start the session with Xorg instead, the arrow keys work as expected with any keyboard layout. Therefore, this bug appears to be related to Wayland.
(I was encouraged to post this issue by an Ubuntu desktop team member: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1939186/comments/2)
Steps to reproduce
- Open LibreOffice Calc
- Press any arrow key
What happened
In LibreOffice Calc, arrow keys scroll.
What did you expect to happen
Move cell in focus.
Relevant logs, screenshots, screencasts etc.
Ubuntu Launchpad Bug Report: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1939186