Capture keys typed on android virtual keyboard using javascript
问题 I have a web page with a textarea, and I need to capture the keys typed by the user (so that I can substitute different unicode characters for the keys typed). My current code is as follows: $(\"#myTextArea\").bind(\'keypress\', function(event) { var keyInput = event.which; // call other functions }); This above code works on PCs, and iPhone/Safari. However, it fails when using Chrome on an android (samsung) tablet. For some reason when I type on the android virtual (soft) keyboard, the \