Hello,
I wrote an addon pianomoz, https://addons.mozilla.org/en-US/firefox/addon/pianomoz/ so that artists can create their own musical instrument.
The music notes work very well on the keyboard, but there are often misfires using mouse click.
Does anyone know why?
I use for keybord :
window.addEventListener(“keydown”, function (event) {
if (event.defaultPrevented) {
return; // Should do nothing if the key event was already consumed.
}
and I use for mouse :
document.addEventListener(‘DOMContentLoaded’, function() {
var b1v = document.getElementById(‘b1v’);
b1v.onclick = function() {
toucheblanche1Press();
};
regards