Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
Macro Language - Easy way to call default LButton action
Posted by: Bziur
Date: April 15, 2015 07:07AM

So I'd like to extend default LButton action,
however I can't add to LButton functionality,
without overwriting what it currently does on pages currently
(toggling checkboxes, calling javascript, etc.)

It would be nice if there was a simple function that would
allow to invoke default LButton action, or if an accelerated
would perform if it wasn't handled, allowing to have multiple
accelerators for single key/mouse combination.

Options: ReplyQuote
Re: Macro Language - Easy way to call default LButton action
Posted by: JamesD
Date: May 12, 2015 12:50PM

There is a file called 'accel.cfg' located at root\browser\defaults\settings. It has the default accel key definations including ones for LButton.

You are allowed to add to KM your own special keys for LButton. That is done by opening the file found by using EDIT > CONFIGURATION > ACCELERATORS.

Just as a test I added the following line to my accelerators.
ALT SHIFT LButton = navReload

Now if I hold down the ALT and SHIFT keys when I click with the left button, my page is reloaded. Note that you must restart KM after making any change to accelerators. Just find an unused key combination and add your change.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.