To detect input click I am using a simple solution:
if (e.keyCode == 13) { // do something }
On the desktop, it works fine. The tablet also has a smartphone - but if it comes to textarea, it wonβt work.
This has become a problem after several recent chrome updates.
So, when you press enter from a mobile, you only see the new line "\ n", but not the execution of the function.
So how to detect textarea login on mobile devices on the latest version of chrome?
source share