Remapped keys are handled incorrectly in client
I use dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:swapescape']"
to swap my Caps Lock and Esc keys in my Fedora 29 with Gnome 3 host. When I go to a website such as this to test which keys are being pressed in my host, I get the following for Caps:
keydown keyCode=27 which=27 charCode=0
keypress keyCode=27 which=0 charCode=0
keyup keyCode=27 which=27 charCode=0
and for ESC:
keydown keyCode=20 which=20 charCode=0
keyup keyCode=20 which=20 charCode=0
When I do the same test in the Win7 client, though, I get the following output for Caps:
keydown keyCode=20 which=20 charCode=0
keyup keyCode=20 which=20 charCode=0
keydown keyCode=20 which=20 charCode=0
keyup keyCode=20 which=20 charCode=0
and for ESC:
keydown keyCode=20 which=20 charCode=0
keyup keyCode=20 which=20 charCode=0
keydown keyCode=27 which=27 charCode=0
keypress keyCode=27 which=0 charCode=0
keyup keyCode=27 which=27 charCode=0
In other words, it looks like ESC is sending both CAPS and ESC to the client, and Caps is sending Caps when it should be sending escape. I (think) Gnome Boxes should support these keyboard remappings, but if there's some other way that I should be doing it, please let me know.
Edited by Ghost User