Are there any events that trigger on form
elements when a user enters input via the MacBook Touch Bar?
Here is a trivial example:
<textarea id="textarea"></textarea>
(function($) {
$('#textarea')
.on('keyup', function() {
console.log('keyup');
})
.on('keydown', function() {
console.log('keydown');
})
.on('keypress', function() {
console.log('keypress')
});
})(jQuery);
On Safari, when I "type" using the Touch Bar (e.g. tapping on emojis or autosuggested text), I don't see any events in the web inspector console. However, the regular keyboard will fire the keydown
, keypress
, and keyup
events as expected.