TAB Key

Find quick help here to get you started with Hollywood
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

TAB Key

Post by djrikki »

Switch msg.action
debugprint(msg.key)
Case "OnKeyDown"
if msg.key = "TAB"
; doesn't work
elseif msg.key = "\t"
; doesn't work
elseif msg.key = "\009"
; doesn't work
endif
EndSwitch

How do I detect the TAB key being preseed if neither of the 3 options above work? Also I'd like to do SHIFT+TAB as well.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

Re: TAB Key

Post by PEB »

The following code works for me:

Code: Select all

Switch msg.action
Case "OnKeyDown"
If msg.key = "        "; This needs to have 8 spaces
	If IsKeyDown("RSHIFT")=True Or IsKeyDown("LSHIFT")=True
		DebugPrint("SHIFT+TAB")
	Else
		DebugPrint("TAB")
	EndIf
EndIf
EndSwitch
Post Reply