KMeleonWiki > Documentation > MouseGestures

Mouse Gestures Plugin

The Gestures plugin is a versatile new addition to K-Meleon 0.8.1.

This new feature is enabled by default. It is as simple to use as right-clicking while sliding your mouse left or right. You need to make a quick sweep left while right-clicking to navigate back to the previous page. Or move your mouse to the right while right-clicking for forward navigation.

Of course this is not all this feature can do. K-Meleon gives you the ability to customise your own functions by adding preferences to your user.js file.

Default Preferences

user_pref("kmeleon.plugins.gestures.left", "ID_NAV_BACK?");
user_pref("kmeleon.plugins.gestures.right", "ID_NAV_FORWARD?");

Customisable Preferences

user_pref("kmeleon.plugins.gestures.down", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.downleft", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.downright", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.up", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.upleft", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.upright", "macro/commandID?");
user_pref("kmeleon.plugins.gestures.mindist", "pixels?");
user_pref("kmeleon.plugins.gestures.split", "percent?");
user_pref("kmeleon.plugins.gestures.maxslip", "percent?");
user_pref("kmeleon.plugins.gestures.maxtime", "milliseconds?");

Movements less than "mindist" are normal clicks. The "split" tells how big slice of the pie to give for the axes (100% = only axes, no diagonals; 0% = no axes only diagonals). With "maxslip" you can set how sloppy you may draw (0% = not a pixel wrong; 100% = always produces a direction). After "maxtime" milliseconds the gesture times-out and you get a normal click.


user_pref("kmeleon.plugins.gestures.upleft", "layers(Open)");
user_pref("kmeleon.plugins.gestures.up", "ID_NAV_HOME?");

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.