I went through step 1 -3 in the test case in the bug description, thus upgraded to version 1.178ubuntu2.4 of keyboard-configuraion, console-setup and console-setup-linux from bionic-proposed. The result:
So keyboard-configuration still enforces grp:alt_shift_toggle to be written to /etc/default/keyboard.
If I change /etc/default/keyboard before the upgrade to only include one layout - in my case XKBLAYOUT=se - no XKBOPTIONS are added. But that's the behavior before the proposed change too.
So unfortunately the proposed change seems to not address the issue reported in this bug.
I went through step 1 -3 in the test case in the bug description, thus upgraded to version 1.178ubuntu2.4 of keyboard- configuraion, console-setup and console-setup-linux from bionic-proposed. The result:
$ cat /etc/default/ keyboard "grp:alt_ shift_toggle, grp_led: scroll"
XKBLAYOUT="se,us"
BACKSPACE="guess"
XKBVARIANT=","
XKBMODEL="pc105"
XKBOPTIONS=
So keyboard- configuration still enforces grp:alt_ shift_toggle to be written to /etc/default/ keyboard.
If I change /etc/default/ keyboard before the upgrade to only include one layout - in my case XKBLAYOUT=se - no XKBOPTIONS are added. But that's the behavior before the proposed change too.
So unfortunately the proposed change seems to not address the issue reported in this bug.