I can reproduce the bug in Ubuntu 18.04.1 by re-configuring keyboard-configuration package (version 1.178ubuntu2.7) with DISPLAY being unset/empty, e.g.:
And after running this Alt+F2 switches to VT2 even from X11. When switching back to X11 (with Alt+F1), it appears that the Alt+F2 also goes to X11, since the krunner popup opens (bound to Alt+F2).
Running "sudo kbd_mode -s" in a terminal window within X11 makes the Alt+Fx keys act normally again.
I can reproduce the bug in Ubuntu 18.04.1 by re-configuring keyboard- configuration package (version 1.178ubuntu2.7) with DISPLAY being unset/empty, e.g.:
tuomas@matta:~ 0 $ sudo DISPLAY= DEBIAN_ FRONTEND= noninteractive \
dpkg- reconfigure keyboard- configuration initramfs: deferring update (trigger activated) initramfs: Generating /boot/initrd. img-4.15. 0-33-generic
update-
Processing triggers for initramfs-tools (0.130ubuntu3.1) ...
update-
And after running this Alt+F2 switches to VT2 even from X11. When switching back to X11 (with Alt+F1), it appears that the Alt+F2 also goes to X11, since the krunner popup opens (bound to Alt+F2).
Running "sudo kbd_mode -s" in a terminal window within X11 makes the Alt+Fx keys act normally again.