|
From: Slava P. <sl...@je...> - 2004-12-30 23:39:53
|
Can you investigate precisely why input works in JTextFields? How does=20 their key handling differ from jEdit's? Paul Libbrecht wrote: >=20 > Hi, >=20 > I am trying to hunt the MacOSX keyboard mis-behaviours in jEdit and I=20 > have to say that things don't appear as easy as I hoped. >=20 > At least I can observe the following issues which seem really to be a=20 > mix of several bugs: > - when reading shortcuts, jEdit seem to store the keyChar value instead= =20 > of keyCode... > - when typing composite characters (such pressing, on a US keyboard,=20 > ALT-e followed by e), there seems to be no way to restore these charact= ers. >=20 > Have I missed an issue ? >=20 > At least for the second, which is my greatest problem, I know that=20 > MacOSX seems guilty: the keyTyped events do simply return "e" as keyCha= r=20 > when pressing alt-e followed by e. However, the swing components=20 > input... "=E9" (eacute) as expected! > To avoid this, it would be easy to use a hidden JTextField or such to=20 > which events would be redirected and to read the key-typed from there. >=20 > But that would only solve point 2. >=20 > More comments welcome. >=20 > paul >=20 >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt |