KDE: Disable paste on middle click - keep middle click for pan/closing tabs etc

I want to disable middle click from pasting. But I still want to keep middle click use in software. Ive only found ways to disable the middle mouse button which is pointless.
I use several apps that use middle click for pan, but also noticed that im pasting everytime I pan. Which is terrible…

I started to write an introduction to libinput … then I reread the query…

1 Like

This doesn’t affect anything other than the kde desktop.
Is it possible with libinput?

1 Like

I think this is more for universal settings … but maybe …
https://man.archlinux.org/man/libinput.4