As Paul suggested, I guess this is a platform specific issue because under
windows, evt.keyChar is being define for the "special keys".

Larry Long

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ed Leafe
Sent: Wednesday, April 11, 2007 10:43 AM
To: Dabo Users list
Subject: Re: [dabo-users] Textbox - backspace, delete,left & right arrows
dont work

On Apr 11, 2007, at 10:15 AM, <[EMAIL PROTECTED]> wrote:

> I've discovered that the evt.keyChar is not reliable because of the  
> issue
> noted below (back arrow shows as '%' to keyChar, etc).  To correct,  
> I am
> also checking the evt.keyCode i.e....

        evt.keyChar is only defined if the key actually corresponds to a  
character. For things such as function keys, arrow keys, and most  
unicode characters, the value will be None. You can check any of  
these other attributes to determine what was pressed: evt.keyCode,  
evt.rawKeyCode, evt.unicodeChar, evt.unicodeKey. Depending on the  
situation, one or more of these may be useful.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/dabo-users/4AF0F785-1FAC-4D16-BA0A-01C5F7508
[EMAIL PROTECTED]

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/756 - Release Date: 10-Apr-2007
10:44 PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.2.0/756 - Release Date: 10-Apr-2007
10:44 PM
 


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/dabo-users/!&!AAAAAAAAAAAYAAAAAAAAAGnwNn52Lj1DjDRaSGJwREHCgAAAEAAAAMH/[EMAIL
 PROTECTED]

Reply via email to