General :  K-Meleon Forum
General discussion about K-Meleon. 
Pages: Previous12
Current Page: 2 of 2
Re: Configuring a Keyboard Shortcut
Posted by: JamesD
Date: January 24, 2014 07:41AM

Will this help?

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------- JS_Stop.kmm
# ---------- Change the default for JavaScript
#
# Dependencies        : main.kmm
# Resources           : -
# Preferences         : "capability.policy.default.javascript.enabled"
# Version             : 0.1  01/23/14 


JS_Stop_Toggle {
togglepref( STRING, "capability.policy.default.javascript.enabled", "noAccess", "allAccess");
statusbar("JavaScript capability policy default = " . getpref( STRING, "capability.policy.default.javascript.enabled") );
}

_JS_Stop_Accel {
setaccel( "ALT SHIFT J" , "macros(JS_Stop_Toggle)");
}

$OnSetup=$OnSetup."_JS_Stop_Accel;";
$macroModules=$macroModules."JS_Stop;";


Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: January 24, 2014 08:10AM

How about a macro/plugin that disables onclick events?

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: JohnHell
Date: January 24, 2014 09:26AM

That's what JamesD already posted.

A macro that disables javascript and therefore disables onclick.

Sorry if it's so obvious but I told several times.

You can't disable onclick without disable javascript because onclick is part of javascript.

I registered and tested and disable javascript is just enough to do.

If you want it automatically, learn a bit of the macro language, it's easy to do. Attach to the default onload macro you own macro that checks the URL and disables javascript before you use some clic to save the image.

Sorry if I don't do myself but I give up at this point sad smiley

-----------------------------
If I'm required and I don't reply in a long time


Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: siria
Date: January 24, 2014 04:12PM

Yeah it's easy enough, if there's a javascript command loaded on an image that shall not execute, just use the plain old JS toggle in the privacy toolbar first or the shortcut F7. I still don't understand what should be so horrible about it *shrugh*

The OnLoad method has the other prob, that JS is always off, even blocking other actions that may be desired.

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: August 13, 2014 07:19AM

It should be possible to have it ignore javascript, etc. events when using a keyboard shortcut since Opera 12 did so with no issues.

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: peterscot423
Date: August 19, 2014 12:41PM

keyword is needed for crtl and shift button. Is there any option from that ?

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: August 19, 2014 12:48PM

Quote
peterscot423
keyword is needed for crtl and shift button. Is there any option from that ?

Huh?

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: guenter
Date: August 19, 2014 07:10PM

Quote
Zero3K
Quote
peterscot423
keyword is needed for crtl and shift button. Is there any option from that ?

Huh?

Google his name.



Edited 1 time(s). Last edit at 08/19/2014 07:16PM by guenter.

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: JohnHell
Date: August 19, 2014 10:14PM

Guenter, seriously, from the first day I read that user was clear it was a spambot.

If you read carefully the texts it writes, are partially legible because it takes portions from here and there to answer creating a nonsense explanations what makes unclear and bad "explanations" for newcomers, mixing results in the forum search and in external search engines, and, additionally, adds links to make spam.

If I were you, I'd already delete that user account. In my forum my hand doesn't shake to take these decissions.

Just cut the leg before the gangrene.

-----------------------------
If I'm required and I don't reply in a long time


Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Dorian
Date: August 22, 2014 01:29AM

@Zero3K
I'll fix the click problem. Kmeleon use preventDefault instead of stopPropagation.

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: August 22, 2014 04:24AM

Quote
Dorian
@Zero3K
I'll fix the click problem. Kmeleon use preventDefault instead of stopPropagation.

Thanks for doing so.

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: August 23, 2014 03:55AM

Quote
Zero3K
Quote
Dorian
@Zero3K
I'll fix the click problem. Kmeleon use preventDefault instead of stopPropagation.

Thanks for doing so.

It wasn't fixed. Using CTRL LButton as the keyboard shortcut to save any image results in nothing happening. I'm using the following entry in accel.cfg:

CTRL LButton = SAVE_IMAGE_AS

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: JamesD
Date: August 23, 2014 06:16AM

Change SAVE_IMAGE_AS to ID_SAVE_IMAGE_AS

Options: ReplyQuote
Re: Configuring a Keyboard Shortcut
Posted by: Zero3K
Date: August 23, 2014 07:48AM

Quote
JamesD
Change SAVE_IMAGE_AS to ID_SAVE_IMAGE_AS

It works now.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.