[Bug 1762952] Re: Alternative shortcut for layout switching Alt+Shift unexpectedly set by default
C. Daniel Mojoli B.
1762952 at bugs.launchpad.net
Mon Nov 19 05:11:22 UTC 2018
This bug made using emacs and IntelliJ Idea a nuisance. I found a simple workaround.
0
=1=
You can verify how ALT and SHIFT are not being detected simultaneously by running
$ xkbwatch
Notice how the blinky lights change for ALT and for SHIFT but not for
both at the same time.
=2=
$ setxkbmap -query
rules: evdev
model: pc105
layout: us,us,us
variant: ,intl,
options: grp:alt_shift_toggle,grp_led:scroll
^^^^^^^^^^^^^^^^^^^^
THIS IS THE PROBLEM
=3=
We will now unset ALT-SHIFT toggle.
$ setxkbmap -option -option grp_led:scroll
^^^^^^^
DELIBERATELY EMPTY
The first empty -option erases all options, the second one just carries
over an option we want to keep. Additional -option clauses can preserve
other preexisting options.
I can still change to next/previous input source with whatever is
configured in Settings/Keyboard/Typing
=4=
Do step =2= again and notice how ALT and SHIFT now play together
simultaneously.
I am now a happy Emacs and IntelliJ user. This is a single command
workaround.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to console-setup in Ubuntu.
https://bugs.launchpad.net/bugs/1762952
Title:
Alternative shortcut for layout switching Alt+Shift unexpectedly set
by default
Status in console-setup package in Ubuntu:
Fix Released
Status in gnome-control-center package in Ubuntu:
Invalid
Status in console-setup source package in Bionic:
Fix Released
Status in gnome-control-center source package in Bionic:
Invalid
Bug description:
[Impact]
The keyboard-configuration package provides a tool for configuring the
keyboard via /etc/default/keyboard. However, there are desktop GUIs
which provide such tools as well, and in the case of gnome-control-
center it has another idea of what /etc/default/keyboard should
contain. In short: The different tools don't play well together.
The proposed upload does not claim to fix all issues with this
incompatibility. But one of the annoyances is that a pure upgrade of
the keyboard-configuration package may result in a changed keyboard
configuration without the user asking for it. The proposed upload does
address that particular issue on desktop systems.
[Test Case]
1. On an Ubuntu 18.04 system, make sure that the contents of
/etc/default/keyboard is 'the g-c-c style', for instance:
XKBLAYOUT=se,us
BACKSPACE=guess
XKBVARIANT=,
2. Reboot.
3. Upgrade to the version of the keyboard-configuration package in
bionic-proposed.
=> Find that /etc/default/keyboard was not changed through the
upgrade.
4. Run the command
sudo dpkg-reconfigure keyboard-configuration
=> Find that you are now offered to change your keyboard
configuration.
[Regression Potential]
As a result of this upload, and unlike before, no keyboard
configuration will happen behind the scenes on a desktop system due to
an upgrade of the keyboard-configuration package. This is the desired
change, and I can't think of a case when a user would want the
configuration to be changed without having asked for it.
[Original description]
Version: Ubuntu 18.04 Final Beta with default Gnome Shell included in
18.04
Steps to reproduce:
1. Define two keyboard input methods in Settings -> Region & Language -> Input Sources
2. Open several applications
3. Observe that application windows can be iterated with Alt + Tab
4. Once application window iteration was begun with Alt + Tab, try to iterate backwards with Alt + Shift + Tab.
5. Try to change keyboard input method switching hotkeys in Settings -> Region & Language -> Input Sources -> Options.
6. Observe that Keyboard shortcut for "Alternative switch to next source" is set to "Alt + Shift" and that keyboard shortcuts can only be changed in Settings -> Devices -> Keyboard -> Keyboard Shortcuts.
7. Observe that the shortcut for "Alternative switch to next source" is not available for configuration in Settings -> Devices -> Keyboard -> Keyboard Shortcuts.
Actual state:
* Performing step 4 does not select the previous app in application switcher but instead changes keyboard input method.
Expected state:
* The shortcut for "Alternative switch to next source" can be changed and / or deactivated in Settings -> Devices -> Keyboard -> Keyboard Shortcuts.
Notes:
* The above was working fine in Ubuntu 17.10. I assume "Alternative switch to next source" did not exist in that version of Gnome Shell.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/1762952/+subscriptions
More information about the foundations-bugs
mailing list