[Optimoz] Help: How to emulate keypress for a mouse gesture
MC Brown
kjdash at gmail.com
Wed Nov 8 07:48:08 PST 2006
As I understand it, javascript will not create a keypress action (imagine
for example CTRL+ALT+DEL)
A better solution anyhow would be to view the source of the Web Developer
Extension. You would need to determine which function with what parameters
was called to hide the images, and then use that function in your gesture.
Best of luck
Casey
On 11/7/06, hello World <world.helloworld at gmail.com> wrote:
>
> Hi,
> First of all, a bundle of thanks for developing such a wonderful extension
> as Mouse Gestures. It is very helpful in browsing and soon becomes a second
> nature.
>
> Now I was looking at the options, I wanted to add a custom gesture but
> could not understand how to put it in javascript. I was looking at the
> source code of many gestures at gesture exchange but couldn't find a clue.
>
> What i wanted to know is how to emulate a sequence of keypress in
> javascript code. For example I am using an extension 'WebDeveloper' and say
> i want to hide images on a page. Now the keyboard sequence for this is
> ALT+T+W+I+M (Alt+T for Tools, W for WebDeveloper, I for Images and M for
> Hide)
> Is there a way to define this sequence of keypress (ALT+T+W+...) in
> javascript so that i can attach it to a custom gesture.
>
>
> And sorry if this question sounds stupid to you. I have programming
> experience in other languages, but not in javascript, although now i an
> interested in it mainly due to mouse gestures
>
> Regards
> RJ
>
> _______________________________________________
> Optimoz mailing list
> Optimoz at mozdev.org
> http://mozdev.org/mailman/listinfo/optimoz
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/optimoz/attachments/20061108/4a380baa/attachment.html
More information about the Optimoz
mailing list