Wikia

WoWWiki

API IsShiftKeyDown

Talk0
101,698pages on
this wiki
Revision as of 12:06, July 4, 2007 by Mikk (Talk | contribs)

WoW API < IsShiftKeyDown

Returns true if the shift/ctrl/alt key is currently depressed.

shiftDown = IsShiftKeyDown();
ctrlDown  = IsControlKeyDown();
altDown   = IsAltKeyDown();

Arguments

none

Returns

Boolean 
1 (true) if the given key is currently held down, nil otherwise.

Related Events

MODIFIER_STATE_CHANGED - fires when shift/ctrl/alt keys are pressed or released

Example

 if ( IsShiftKeyDown() ) then DoSomething(); end

Around Wikia's network

Random Wiki