realbasic-plugins
[Top] [All Lists]

Re: CharCode in KeyDown event on Windows systems

To: "REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>" <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: CharCode in KeyDown event on Windows systems
From: William Yu <william at realsoftware dot com>
Date: Tue, 29 Mar 2005 14:25:38 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
On 3/29/05 11:49 AM, "Björn Eiríksson" <bjorn at einhugur dot com> wrote:

>> We're giving you the raw Virtual-Key code on Windows, so 46 is
>> VK_DELETE.
>> I'm not sure that's what we should be doing though (at least not for
>> the
>> charCode parameter), so that's not good...
> 
> Thanks for the explanation.
> 
> I expect this one probably should have been in the KeyCode parameter
> which is always returning zero in Windows.

Yeah, that's a bug we need to fix.  Hopefully this will fix more of people's
code than break it... But I suppose if you're using an older version of RB,
you could always check the KeyCode, and if it's 0 then rely on the broken
behavior.  As far as I know, a KeyCode cannot be 0, on Windows anyway.


Regards,
William Yu
william at realsoftware dot com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>