I would like to use extra button of my Logitech mouse in a web context.
I am on Ubuntu (but there is similar things in other OS), and I can bind these buttons with OS actions. -> Answer for: Is right click a Javascript event?
I would like to listen for this buttons in javascript, like normal buttons:
element.addEventListener(function(evt){
switch(evt.which){
case 1: //left click
case 2: //middle click
case 3: //right click
case XX: //other buttons clicks
}
}
https://stackoverflow.com/a/2405857/1064270
The only solution I see is a browser extension and native message passing , at least on Chrome.
So I am looking for a quicker path!