General :  K-Meleon Web Browser Forum
General discussion about K-Meleon. Questions about how to setup it, macro coding, all related to its usage and the project itself, including this website. 
Disable menu-key or right mouse button
Posted by: Marc
Date: April 17, 2008 08:36AM

Hi,
The way K-Meleon is configurable is excellent and I've come quite far with disableing options that I don't want to be shown.
But I just can't find a way to disable the menu-key (next to the right hand side Ctrl-key) and the right mouse-button.

I tried in defaults/settings/accel.cfg the following lines:
VK_APPS = ID_NAV_STOP
RBUTTON = ID_NAV_STOP
but that didn't work.

Also I searched through defaults/settings/menus.cfg where the corresponding menus are, but couldn't find them.

On another subject: some websites (like this one!) can detect the language set in IE. I couldn't find such an option in K-Meleon. But this is just a mind inconvenience.

Options: ReplyQuote
Re: Disable menu-key or right mouse button
Posted by: kko
Date: April 17, 2008 12:08PM

Quote
Marc
But I just can't find a way to disable the menu-key (next to the right hand side Ctrl-key) and the right mouse-button.

I tried in defaults/settings/accel.cfg the following lines:
VK_APPS = ID_NAV_STOP
RBUTTON = ID_NAV_STOP
but that didn't work.

Also I searched through defaults/settings/menus.cfg where the corresponding menus are, but couldn't find them.

Marc, what do you actually want to do? Do you want to disable keys or menus? I don't think that you can really disable keys or mouse buttons through accelerators - especially keys like VK_MENU (not VK_APPS) and RBUTTON are normally handled on the OS level, not on application level - but you can disable menus of course. See here.


Quote
Marc
On another subject: some websites (like this one!) can detect the language set in IE. I couldn't find such an option in K-Meleon.

You can find some hints in the first section of K-Meleon Wiki Translations.

Options: ReplyQuote
Re: Disable menu-key or right mouse button
Posted by: Marc
Date: April 17, 2008 12:17PM

Yes, I want to disable the windows menu-key (which, according to http://kmeleon.sourceforge.net/wiki/ConfigFiles#accel is VK_APPS:
VK_LWIN   (left Windows key)
VK_RWIN   (right Windows key)
VK_APPS   (menu key)
so that an inexperienced user can't use its options anymore.

I downloaded K-Meleon-NX-18113 and noticed it had a different right-mouse-menu (aka menu key-menu), so I tried to locate that menu to empty it (kind as in your example how to get rid of menus by emptying them), but to no avail: I couldn't find the entry.

Options: ReplyQuote
Re: Disable menu-key or right mouse button
Posted by: kko
Date: April 17, 2008 05:06PM

K-Meleon-NX is based on K-Meleon 1.0 and is using the old menu system (there is no defaults/settings/menus.cfg). You have to edit the menus.cfg file in your profile directory (profiles/default/<random>.slt/menus.cfg). All context menus end on "Popup". You just need to search for that and empty the desired menus.

Options: ReplyQuote
Re: Disable menu-key or right mouse button
Posted by: Fred
Date: April 17, 2008 05:38PM

The menu key VK_APPS seems to be systemwide, which
signifies, that it will bring up the context menu
of all applications, when they are in focus.
In Linux with wine of a newer build it will act as in
Windows, while in Linux with older builds of wine
the menu key won't react at all, because it was not yet
implemented in the Windows emulator yet.
So if you have a different browser variation, it may
also show a different context menu, but if the context
menu is emptied, as kko described, then, as I presume,
the menu key will also bring up an emptied context menu.

Fred

Options: ReplyQuote
Re: Disable menu-key or right mouse button
Posted by: Marc
Date: April 18, 2008 06:50AM

Excellent!

I found the menus thanks to kko's hint and Fred wrote what I was thinking: empty the menus and everything's gone.

It's working as desired now.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.