can i get the keycode value?, not the code.
i mean when you push "D" key on keyboard it will return 68, can it return "D" ? and i got nothing for shift key or tab key.
it is possible to do?
(function(){
let this_, keycode_;
$('textarea')
.on('keydown', function(e){
this_ = e.target;
keycode_ = e.keyCode || e.which;
})
.on('input', function(){
$('#log').text( keycode_ );
})
.on('keyup', function(){
});
})();
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!--
i want to get keycode_ value, not the code.
i mean when you push "D" key on keyboard it will return 68, can it return "D" ? and i got nothing for shift key or tab.
can you solve this?
-->
<textarea></textarea>
<div id="log"></div>