949 / 5.000 Fedora KDE Plasma with Falkon deactivate right mouse button

Hello everyone

I use Linux tablets to display a website in the sports area.
Fedora 40 KDE Spin is installed and the Falkon browser starts full screen immediately after booting and the website is displayed.
On the website you can select something with the left mouse button, which works well with touch. The on-screen keyboard also opens where necessary.
I just want to deactivate the right mouse button in the browser, if necessary completely. Unfortunately, older people are used to pressing a button for a long time. In touch mode, a long press just means the right mouse button. So if someone presses for a long time, the function unfortunately doesn’t work, but the browser menu opens.

What can I do?
Deactivate the right mouse button completely?
Increase the time to 10 seconds until the menu appears?
Deactivate the right mouse button in Falkon in particular?

I’m not clear about every detail, so I’m going to assume the following:

  • there is no physical mouse and what you mean by right click is a long press on the touch screen.
  • the tablets are using wayland

The first thing to understand is that a long press does not trigger a right click. As far as I know, there is only a BTN_TOUCH event, and if it’s not released for a specific time, the application can decide to do some other action - like showing a menu.

This means:
Disabling the right mouse button won’t work. If you can do that, increasing the time to 10 seconds might be your best bet (I have no idea how to do that).

One workaround I can think of is to disrupt the BTN_TOUCH holding by inserting a release (value = 0) and press (value = 1) if it is not released for some time (less than needed to trigger the menu).

There are several key remappers, that would make simply supressing a right click easy, but since you something more complicated with a timer, map2 is the only one that comes to mind that might work in this case. You will need to write a little python code though and it might have unwanted side effects.

1 Like

One more Idea: use a browser that supports disabling the context menu in kiosk mode. I think that might be possible with firefox somehow.

Hello

Thanks for your answer.

I’ll explain in more detail.

It’s about a Meyton shooting range.

The measuring frame starts when you access it with a browser via IP.

I chose Lenovo ThinkPad X1 tablets because I didn’t want Android and WiFi.
I think Linux is better.

I’m a beginner with Linux. I can install and find solutions, but I’m better at Windows.

I now have fedora with kde because the on-screen keyboard works well here.

There are even differences in the browser. Chromium doesn’t always open the keyboard.

It works with Firefox and Falkon.

Because the devices just have to run stably, I chose the easy way.

With Firefox I have the problem that when I restart the measuring frame, which may be necessary later on, the browser freezes and no longer establishes a connection. It’s stupid in full screen. That’s not the case with Falkon. I looked at the cache in Firefox, but that’s not it.

maybe you have another idea?

here’s the video from Falkon.
first I press normally, then like a pensioner.

You could ask the Falkon developers for a way to disable the context menu. → Development - Falkon

Other than than I got no more ideas.

I can’t see any video, btw.

I have uploaded the video to my webspace, but I am not allowed to send a link :frowning: