0

Is there a proper way to capture "Enter" key in input text both PC and Mobile Chrome?

In PC Chrome it works fine, but in mobile Chrome it doesn't

<input
  type="text"
  onKeyDown={(e) => {
    console.log(e.key);
    // On PC Chrome, the result is: Enter
    // On Mobile (Android) Chrome, the result is: Unidentified
  }}
/>
Artzeeker
  • 117
  • 10
  • 1
    Check https://stackoverflow.com/questions/59584061/why-is-unidentified-returned-on-mobile – James Nov 28 '22 at 17:13

0 Answers0