[Zotero 7 Plugin Dev] How to capture events of mouse side buttons

I tried to capture the mouse side button events on Zotero 7.0.4 (64-bit).

In the Chrome browser, the mouse side button will be mapped to "Forward"/"Back", which has the same effect as Alt+Left_Arrow / Alt+Right_Arrow.

I added the parameters `-ZoteroDebugText -jsconsole` after the path to the executable file, and tried to execute below in the Browser Console after starting Zotero.

``` javascript
window.addEventListener("pointerdown", function(event) {
console.log('pointerdown', event)
}, true);
```
When I press the left mouse button, right mouse button, and scroll wheel, the console logs, but pressing the mouse side button does not respond.

I am sure that `addEventListener` should work, because in Chrome browser, this can capture the mouse side button, but it cannot be done in Zotero. I guess Zotero intercepts non-left and non-right button keys or something, but unfortunately I don't know where to start. I hope someone who familiar with Zotero's source code could help me.

My operating system is Windows 10 22H2 19045.4842
The mouse I use is Logitech M720:
https://s3.amazonaws.com/zotero.org/images/forums/u12327867/erf9nvv87kyj5ntg41gd.png
This discussion has been closed.