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.