Subject: Re: Bug Tk 8.2.1 Can't use the dead keys with accents that require the shift key - DN [1]
diam@pmdiam.ensta.fr (Maurice DIAMANTINI) - 11 Oct 1999 - comp.lang.tcl
On 09 Oct 1999 21:45:54 GMT, jas@xmail.com.br <jas@xmail.com.br> wrote: > >Tk 8.2.1 Bug: Generated by Scriptics' bug entry form at > http://www.scriptics.com/support/bugForm.html >Responses to this post are encouraged. >------ > >Submitted by: Joao Andre Simioni >OperatingSystem: Windows 95 >Synopsis: Can't use the dead keys with accents that require the shift key > >ObservedBehavior: > Whenever I create an entry or text widget, I cannot write characters > such as: > ã - ê - ü > because tk always write: > à - e - ú. > It appears that tk is ignoring the dead keys with the shift key pressed. I had such a problem some week ago, I'm not sure if it is a tk bug, or a Xserveur, but I've corrected it by modifying tkTextInsert (in text.tcl lib) in following way : proc tkTextInsert {w s} { # Modif par diam le 04/08/99 pour linuxppc (eacute == "" !!!) # # # if {($s == "") || ([$w cget -state] == "disabled")} { # # # return # # # } if {("x$s" == "x") || ([$w cget -state] == "disabled")} { return } catch { if {[$w compare sel.first <= insert] && [$w compare sel.last >= insert]} { $w delete sel.first sel.last } } $w insert insert $s $w see insert } I have not report this bug at srciptics as this error was for tk-8.0.5 (on linuxppc-R5 :-) ; and I wanted to see if this bug had desepert (??) with tk8.2 that I was trying to compil (Thank you steve :-). I think the concerned test should use the new string equal feature. Just notice that the following line worked as expected: bind $top <Any-KeyPress> { puts stdout "Key: char %%A = %A sym %%K = %K code %%k = %k " } > > >DesiredBehavior: > I'd like to be able to write all accentuated characters > > >Comments: > I'm using windows 95, standard U.S. keyboard with accentuation. > There isn't the same problem when I use tcl/tk in Linux > -- Maurice DIAMANTINI | Ecole Nationale Superieure de Techniques Avancees mailto:diam@ensta.fr | 32 Boulevard Victor 75739 PARIS Cedex 15 - France
Last modified
1999-10-19
1999-10-19
(195.108.246.51)
Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated
