Open mvorisek opened 2 years ago
v0.15.0 / latest
Firefox native behaviour:
key is capitalized according to the active shift, thus such capitalized/UC character must be supported by syn.js
key
test case:
['keypress', 'keydown', 'keyup'].forEach((k) => $('#xxx')[0].addEventListener(k, event => { console.log(event); })); syn.trigger($('#xxx')[0], 'keyup', {character: 'n'}); syn.trigger($('#xxx')[0], 'keyup', {character: 'N', shiftKey: true});
must log both events with non-zero keyCode
keyCode
v0.15.0 / latest
Firefox native behaviour:
key
is capitalized according to the active shift, thus such capitalized/UC character must be supported by syn.jstest case:
must log both events with non-zero
keyCode