Skip to main content
Home Forums Silverlight Programming Programming with .NET - General How do I process the "unknown" key?
4 replies. Latest Post by Jonathan Shen – MSFT on January 15, 2009.
(0)
mihai.mi...
Member
1 points
3 Posts
01-09-2009 10:15 PM |
I am trying to develop a silverlight text editor control and I am using the keyup event to track the keys that were pressed to manipulate them and then insert them into the control.
The trick is that for a bunch of keys I get a "unknown" value as the key value for the event.
Can you please give me some suggestions how can I handle this time of situation?
Thank you in advance,
Mihai
lingbing
Contributor
2249 points
406 Posts
01-09-2009 11:01 PM |
Which keys will show "unkown" value? For example?
Regards!
struggle...
578 points
102 Posts
01-10-2009 4:59 AM |
Hi, maybe your key is a function key or a special key such as "Internet" key on some kind of Advanced keyboard.
The silverlight framework contains very basic Keycode-Enum that can process most of the Keyboard Event and Logic..
Could you bring more infomation about your "KEY" ?
01-10-2009 5:28 AM |
That's exactly the case ... I'm trying to insert some punctuation signs - basically I get the "unknown" key for any key besides alphanumerical keys.
In this case, what's the best way of getting the actual value of the key?
Jonathan...
All-Star
24939 points
2,425 Posts
01-15-2009 12:55 AM |
Hi Mihai,
As you can see from above, punctuation signs are not supported as you described. Currently, you'd better handle it on its TextChanged event.
Best regards,
Jonathan