rawkeydown & rawkeyup (was : 2 more questions aboutoperationson text in fields)

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 4 00:10:39 EDT 2004


On 8/2/04 4:21 PM, jbv wrote:

 >
 > "J. Landman Gay" a *crit :
 >
 >
 >>On 8/2/04 1:56 PM, jbv wrote:
 >>
 >> > BTW rawkeydown and rawkeyup both work, but then, how do you
 >> > map the raw keynumber with the corresponding char ?
 >> > the numtochar can't be used in this situation...
 >>
 >>Good question. I usually only use it when I need to trap specific keys,
 >>and I build a switch statement around those. If you need to trap every
 >>key then you may be better off with your other solution. What is the
 >>goal for this handler?
 >>
 >
 >
 > Well, it would be a bit too long to explain...
 > I guess an example is better (please note that I finally used
 > a third option - it is not fully implemented yet, but it'll give
 > you an idea).

I see. That's kind of cool. I think you are right though that trapping 
rawkeydown wouldn't work too well. I'm glad you found another solution 
because I can't think of a better one.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list