[Winforms] Improve X11 keyboard handling. (#18428)
commit42956f554bf18dbfbc5f30e4d74f1c54df15f0b4
authorKarl <5079870+PreferLinux@users.noreply.github.com>
Mon, 13 Jan 2020 16:12:10 +0000 (14 05:12 +1300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 13 Jan 2020 16:12:10 +0000 (13 17:12 +0100)
treef20896b0a517de9c6974a05d67dc91982e40232b
parent7a8242ed362ae1176d5c38cbe5287b7332490d63
[Winforms] Improve X11 keyboard handling. (#18428)

- Ignore key events with vkey == 0. They won't match a real key code so don't try. Besides, trying can cause segfaults on ChromeOS Linux mode.
- Check special-case keys (numpad) before looping to get them. No point leaving them for afterwards...
mcs/class/System.Windows.Forms/System.Windows.Forms/X11Keyboard.cs