pressing key with multiple pressed keys

This commit is contained in:
mbattista 2021-04-10 11:43:04 +00:00
parent e5ca4ac184
commit be3453c37d
2 changed files with 121 additions and 13 deletions

View file

@ -248,9 +248,9 @@ func (manager *RemoteManager) SetKeyboardLayout(layout string) {
// Workaround for https://github.com/m1k1o/neko/issues/45
// When pressing `shift` + `,` instead of `<` comes `>`.
variant := ""
if layout == "us" {
variant = "mac" // TODO: Test all keys.
}
// if layout == "us" {
// variant = "mac" // TODO: Test all keys.
// }
exec.Command("setxkbmap", layout, variant).Run()
}