RE: [flexcoders] KeyDown Event returns incorrect ascii values

2005-04-29 Thread Erik Westra





U could also try and see if Key.getCode does return the 
right value.
 
Greetz Erik
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Matt 
ChotinSent: vrijdag 29 april 2005 6:15To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] KeyDown Event 
returns incorrect ascii values


Can you try setting 
System.useCodepage = true and see if that changes which values you 
get?
 
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] KeyDown Event returns incorrect ascii values

2005-04-28 Thread Matt Chotin










Can you try setting System.useCodepage =
true and see if that changes which values you get?

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
Sent: Thursday, April 28, 2005
11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] KeyDown
Event returns incorrect ascii values



 


KeyDown Event returns incorrect ascii values when
used with a spanish
layout keyboard.

I followed the calculator tutorial
<http://www.macromedia.com/devnet/flex/articles/calculator.html>
and tried to extend it to accept keyboard input.
I noticed that the ascii values are returned,
according to the
documentation, based on an us english layout
keyboard.

It works as documented, but not as I
expected.  I think that function is
completely useless for people with a non-us
keyboard,
and keyboard layout cannot be assumed, as we are
developing applications
for the internet.

Well, when I tried to get the ascii codes, I was
not able to get the
correct codes.
For example, when i press Shift + 2, I get an at
"@" sign , instead of a
quote sign, as if I had an english keyboard.
I mean, that is very cool when writing games when
I need to get full
control of the shift, control, etc, but when I was
trying to
get regular keyboard input for a simple
calculator, i was not able to
enter the equal sign by pressing
Shift + 0, as I would do in any application using
my normal spanish
keyboard, to enter the "=", but I get
the ")" instead.

Can anyone tell me what am i doing wrong, or tell
me the rationale
behind this design?

I'm attaching my modified calculator in case
someone wants to review it.1

Thanks in advance,

    Daniel Montero
    [EMAIL PROTECTED]















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] KeyDown Event returns incorrect ascii values

2005-04-28 Thread Daniel Montero

KeyDown Event returns incorrect ascii values when used with a spanish
layout keyboard.

I followed the calculator tutorial

and tried to extend it to accept keyboard input.
I noticed that the ascii values are returned, according to the
documentation, based on an us english layout keyboard.

It works as documented, but not as I expected.  I think that function is
completely useless for people with a non-us keyboard,
and keyboard layout cannot be assumed, as we are developing applications
for the internet.

Well, when I tried to get the ascii codes, I was not able to get the
correct codes.
For example, when i press Shift + 2, I get an at "@" sign , instead of a
quote sign, as if I had an english keyboard.
I mean, that is very cool when writing games when I need to get full
control of the shift, control, etc, but when I was trying to
get regular keyboard input for a simple calculator, i was not able to
enter the equal sign by pressing
Shift + 0, as I would do in any application using my normal spanish
keyboard, to enter the "=", but I get the ")" instead.

Can anyone tell me what am i doing wrong, or tell me the rationale
behind this design?

I'm attaching my modified calculator in case someone wants to review it.1

Thanks in advance,

Daniel Montero
[EMAIL PROTECTED]





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 

http://www.macromedia.com/2003/mxml"; xmlns="*">