Daniel van Vugt 1f0e4b58ab keyboard: Handle symbolic OSK key codes as explicitly invalid
`key` is an empty string in this case, causing `charCodeAt(0)` to return
`NaN`, which when passed to `Clutter.unicode_to_keysym` now generates an
error in gjs >= 1.67.3:

```
JS ERROR: Error: Argument wc: value is out of range for uint32
```

And the symbolic keys like Backspace, Enter and Caps Lock would have their
presses ignored.

Just skip the call to `charCodeAt` that will fail and allow
`Clutter.unicode_to_keysym` to return its usual error flag.

Fixes: https://bugs.launchpad.net/bugs/1918738
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1758>
2021-03-15 12:41:10 +00:00
..
2021-02-26 12:28:21 +00:00
2021-02-24 09:52:45 +00:00
2021-03-02 15:36:26 +01:00
2020-03-31 05:43:40 +00:00
2019-11-11 19:25:14 +00:00
2021-02-13 08:58:20 +00:00
2020-03-27 10:39:58 +01:00