controlkeydown

David Vaughan drvaughan55 at mac.com
Thu Feb 21 00:18:00 EST 2002


Sorry, Pierre, I was too short. T is a variable in this context. You 
have to test for the actual value you want. A Switch statement, as 
already published by others, is a more general solution to capturing any 
key of interest and passing on those you don't care about.

regards
David

On Thursday, February 21, 2002, at 11:30 , Pierre Delain wrote:

>  Sorry but when I use controlkeydown T (without the quotes, as you 
> say), I
> get a result, but the result is the same whatever the key. I if press 
> ctrl F
> or ctrl G, for example, the result is exactly the same as ctrl T!!
>  So the question remains : how to use controlkeydown to get a different
> result for ctrl T or ctrl F?
>
> Pierre
>
>>
>> Pierre
>>
>> Get rid of the quotes, thus:
>> on controlKeyDown T
>> DoSomething
>> end controlKeyDown
>>
>> I know the Transcript Dictionary for controlKeyDown shows "keyname" but
>> I got the clue from commandKeyDown where it just says keyname, without
>> the quotes. Probably one for Jeanne's list, for consistency.
>>
>> regards
>> David
>>
>> On Wednesday, February 20, 2002, at 09:29 , Pierre Delain wrote:
>>
>>> I try to use the following handler to create a shortcut with the "T" :
>>>
>>> on controlkeydown "T"
>>> DoSomeThing
>>> end controlkeydown
>>>
>>> There is no reaction. What is wrong in my handler?
>>>
>>>
>>> Thanks
>>>
>>> Pïerre
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the Use-livecode mailing list