keyCode on android is always 229
<p>On my Samsung Galaxy tab 4 (Android 4.4.2, Chrome: 49.0.2623.105) I ran into a situation where the keyCode is always 229.</p>
<p>I've setup a simple test for two situation</p>
<pre><code>&lt;div contenteditable=&quot;true&quot;&gt;&lt;/div&gt;
&lt;input&gt;
&lt;span id=&quot;keycode&quot;&gt;&lt;/span&gt;
</code></pre>
<p>script:</p>
<pre><code>$('div, input').on('keydown', function (e) {
    $('#keycode').html(e.keyCode);
});
</code></pre>
<p><a href="https://jsfiddle.net/ztu9d9j3/3/" rel="nofollow noreferrer">DEMO</a></p>
<p>Fortunately I can find posts about this, but I couldn't find one with a working solution. Someone suggested to use <code>keyup</code> instead or to use the <code>textInput</code> event, but that one is only fired on <code>blur</code>.</p>
<p>Now, to top it all, this doesn't happen with the default stock browser :(</p>
<p>Any help would be appreciated!</p>
<p>UPDATE: If it turns out that this is not possible I can still grab the char before the caret: <a href="https://stackoverflow.com/questions/15157435/get-last-character-before-caret-position-in-javascript">post</a></p>