Bug in GS

WILLIAMS Dominic <>
Fri Feb 6 15:26:57 CET 2004


I have investigated this using Python's Tk interface.

The first field (KeySim) in GS's keypress event data list
seems to correspond to Tk's %K field, and in Python as well
this field gives the same output as in GS.

There is in fact another field (%A, or char in Python), which
gives the correct information, i.e. the actual character that
is entered into the editor or textfield widget. Unfortunately,
this is not available in the GS keypress event data...


> -----Original Message-----
> From: WILLIAMS Dominic 
> Sent: Wednesday, January 28, 2004 2:59 PM
> To: Erlang (E-mail)
> Subject: Bug in GS
> 
> 
> Hello,
> 
> I am running R9C under Windows 2000.
> 
> When I run the event_test.erl (in lib/gs/examples),
> for all characters that require the "Alt Gr" key, the
> keypress event's data is not correct (and is identical
> to the data when the "Alt Gr" key is not held).
> 
> For example (on my french keyboard), when I type '['
> (which requires AltGr+'(', the printout is:
> 
> Got event: {gs,{35,<0.37.0>},keypress,[],[parenleft,40,0,0]}
> 
> It is thus impossible to know what character is really being
> typed...
> 
> Dominic Williams.
> 



More information about the erlang-questions mailing list