Does it seem like this line could be the problem? https://github.com/GNOME/gnome-shell/blob/3b1330880fbaa1c1f98c912d6d41fe14af18e3eb/js/ui/status/keyboard.js#L382
From here (https://github.com/GNOME/gnome-shell/blob/2997e4950ba31747b5e3260c306456b0de413421/js/misc/keyboardManager.js#L30) it seems like this will ungrab the keyboard under some circumstances. BTW this is still an issue in bionic as of today.
I have never read the ubuntu/gnome sources before, so please forgive if I have misinterpreted something. Also, thanks to incredible-angst for pointing out the DBUS method, which is how I found these lines.
Does it seem like this line could be the problem? https:/ /github. com/GNOME/ gnome-shell/ blob/3b1330880f baa1c1f98c912d6 d41fe14af18e3eb /js/ui/ status/ keyboard. js#L382
From here (https:/ /github. com/GNOME/ gnome-shell/ blob/2997e4950b a31747b5e3260c3 06456b0de413421 /js/misc/ keyboardManager .js#L30) it seems like this will ungrab the keyboard under some circumstances. BTW this is still an issue in bionic as of today.
I have never read the ubuntu/gnome sources before, so please forgive if I have misinterpreted something. Also, thanks to incredible-angst for pointing out the DBUS method, which is how I found these lines.