Re: Witch KeyEvent.VK_ for '°' (degree)?



Marco wrote:
Witch KeyEvent.VK_ can I use for '°' (degree)? I find a list at http://javaalmanac.com/egs/javax.swing/Key2Str.html?l=rel , but I don't find '°'. Do you know a complete list of code in some link?

Thomas already gave you a good answer, but do you actually have a degree key on your keyboard? The U.S. layout doesn't, but I don't know about Italian layouts. My point is to emphasize that virtual key codes are about describing specific keys on the system keyboard; they only indirectly have anything to do with characters. If you're trying to watch for the user entering a degree character via the keyboard then you may be going about it the wrong way.


--
John Bollinger
jobollin@xxxxxxxxxxx
.



Relevant Pages

  • Re: special characters, ie spanish accents
    ... If you do a web search on keyboard layouts and go to the ... characters instead of 30 is a different matter. ... There is also an English International layout that gives you many of the ... dead keys and you still see the original layout for English keyboards. ...
    (freebsd-questions)
  • Re: suggestions for new module name
    ... Several metrics of effort are used. ... > This module is useful for determining which keyboard layout is more ... That means that accented characters, unicode, etc. are not ...
    (comp.lang.perl.modules)
  • Re: RosAsm?[OT#2]
    ... >> accent marks on some of the word ommitted because of ASCII and UK ... because it has the keyboard layout as a nice little ASCII ... _ONE ADDITION_ that is not on the keyboard diagram but I ... that many UK typists simply "get used" to typing with a UK keyboard ...
    (alt.lang.asm)
  • Re: Programmatically language switch
    ... > So, the characters being *displayed* are Latin, not Cryllic, or the keyboard ... and you're displaying * or something ... > instead of the real characters, then, yes, changing the keyboard layout ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: ToAsciiEx/LoadKeyboardLayout question
    ... > English system as running on non-english Windows.... ... want to have US English keyboard in his list. ... When the current keyboard layout is ... the user's lists. ...
    (microsoft.public.vc.language)

Loading