Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
how to send a key by using gestures
Posted by: winkey88
Date: March 26, 2016 06:05AM

How can I send the key "page up" when I press right button of the mouse and move up?

Options: ReplyQuote
Re: how to send a key by using gestures (Page Up)
Posted by: siria
Date: March 26, 2016 07:07AM

Don't know if it's possible to send a Key directly (don't think so), or if the page-up-command already exists somewhere by default in newer KM (well possible).
Anyway, try this little macro and report if it works?

Write this line:
ScrollUp1{injectJS("window.scrollByPages(-1);");}

into a kmm-file of your choice. Or create a new one with notepad and save as (whatever...).kmm into the macros folder. Make sure the file has no hidden txt-ending. Restart the browser.

Now open page "about:config", confirm the warning, and set this pref:
kmeleon.plugins.gestures.up = macros(ScrollUp1)

If it works okay, you may want to get this macro available into the gestures choice menu for easier handling in the future.
If things still are as in KM1.6 (?), there's somewhere a file named gestures.xml. Add this inside:

command="macros(ScrollUp1)"/>
<action caption="&macrosScrollUp1;"



Edited 2 time(s). Last edit at 04/16/2016 09:37PM by siria.

Options: ReplyQuote
Re: how to send a key by using gestures
Posted by: winkey88
Date: March 27, 2016 01:51AM

It's working.
Thanks.

Options: ReplyQuote
Re: how to send a key by using gestures
Posted by: siria
Date: March 27, 2016 04:34AM

Okay, thanks for confirmation.

PS: had a typo above, in the gestures.xml (was "scrollup1" not "ScrollUp1", oops)
command="macros(ScrollUp1)"/>

Options: ReplyQuote


K-Meleon forum is powered by Phorum.