This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > January 2005 > Possible to capture shift-click on toolbar icons





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Possible to capture shift-click on toolbar icons
Bjorno

2005-01-24, 12:24 pm

I am building an extension and I would like to slightly change the
functionality if the user shift-clicks the icon instead of just clicking
normally. Is it possible to capture modifier keys like this in DW 2004? Bj

Tom Muck

2005-01-24, 7:17 pm


"Bjorno" <dmurphy52@lycos.com> wrote in message
news:ct34eb$92h$1@forums.macromedia.com...
> I am building an extension and I would like to slightly change the
> functionality if the user shift-clicks the icon instead of just clicking
> normally. Is it possible to capture modifier keys like this in DW 2004?

Bj
>


Sure. You can do something like this:

if (dw.getKeyState("Shift") && dw.getKeyState("Cmd")){
// do something
}



--
-------------------------------------------
Tom Muck
co-author Dreamweaver MX 2004: The Complete Reference
http://www.tom-muck.com/

Extending Knowledge, Daily
http://www.CommunityMX.com/


Bjorno

2005-01-28, 7:25 pm

awesome! Works great.


Thanks,
BJ
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews