Revert iOS keyup workaround

It seems Apple has fixed their buggy keyup events, so remove the
workaround and allow keys to be kept pressed again.

This is a revert of 9e99ce126ca8f6f350fa015c0e58d35103c62f7e.
This commit is contained in:
Pierre Ossman
2019-10-31 15:36:40 +01:00
committed by Lauri Kasanen
parent dc3ddc8efc
commit 62fca18cb9
2 changed files with 1 additions and 51 deletions

View File

@@ -118,9 +118,7 @@ export default class Keyboard {
// We cannot handle keys we cannot track, but we also need
// to deal with virtual keyboards which omit key info
// (iOS omits tracking info on keyup events, which forces us to
// special treat that platform here)
if ((code === 'Unidentified') || browser.isIOS()) {
if (code === 'Unidentified') {
if (keysym) {
// If it's a virtual keyboard then it should be
// sufficient to just send press and release right