In safari on IOS16 or later, simultaneous presses of "a" and "meta" are not caught when a keydown type event listener is set in JavaScript.

We have confirmed the title issue on iPads with at least IOS16 or later.

window.addEventListener('keydown', e => {
  e.preventDefault();
  e.stopPropagation();
  console.log(JSON.stringify(e, ['key', 'altKey', 'ctrlKey', 'shiftKey', 'metaKey']));
})

When a key is pressed in the above code, the console outputs what is being pressed now.

However, when the meta key is pressed, "a" does not respond. In addition to this, all other key pairs in the shortcut list displayed by long-pressing "command" do not respond.

Is there any way to work around this problem?

Replies

Sorry, I'm Japanese. It may be hard to read in little English.