How to disable middle mouse paste on Ubuntu?

When I use an application, such as spreadsheet, if I click the middle mouse button this pastes what is in my clipboard. I would like to disable this behaviour.
I’ve followed the instruction with gnome-tweaks here: xorg - How do I disable middle mouse button click paste? - Ask Ubuntu
However, some software (eg. firefox) has their own setting for this that I was able to modify.
Therefore my question: How do I disable this in Onlyoffice?

Version: Onlyoffice 8.2.1.38 (snap) installed through App Center.
OS: Ubuntu 24.04.1

Hello @atnas

I will take a look at the situation to find out if there is such option. Otherwise, I will consider this query as a suggestion to implement this option.

Hello again @atnas

Unfortunately, there is no way to disable this behavior in Desktop Editors. The suggestion to add such possibility was registered. However, considering that this is a system setting, we truly believe that this functionality must be handled on system level instead of some alternate solution in the app.

Hi @Constantine

Yes, I agree that it makes the most sense to handle this as a system setting. However, I believe I already changed the system setting in the askubuntu link I sent in my original post?
Am I to understand that it already uses a system setting that I just haven’t managed to change yet?

Best, Morten

I’m not sure, but you can check if setting works in any other app too for the reference.