Am Montag, 27. Januar 2020 22:30:24 UTC+1 schrieb Francois Vogel:
> Le 27/01/2020 à 14:56, Robert Csok a écrit :
Francois, Robert,
> Should we change the man page or could we allow for KeyRelease in
> addition to KeyPress at line 129 of unix/tkUnixKey.c?
given that the normal use case is binding the translated key on <KeyPress>
I'd prefer to change the documentation accordingly and keep the code in
tkUnixKey.c as is.
Use cases where something has to happen on <KeyRelease> are rare and mostly
related to modifiers (Shift/Control/Alt), specific functional keys like
<Return> or <Up> (where the string translation isn't used), or even
unspecific (<KeyRelease> w/o further pattern).
On the AndroWish source tree "fgrep -rl assets" and
"fgrep -rl jni | grep -v '[.][ch]$'" yield:
assets/tksqlite0.5.13/tksqlite.tcl
assets/notebook2.2/lib/gui/searchentry.tcl
assets/tklib0.6/ctext/ctext.tcl
assets/Tkzinc3.3.6/demos/testGraphics.tcl
assets/Tkzinc3.3.6/demos/groupsPriority.tcl
assets/classview0.1/classview.tcl
assets/tkhtml3/
hv3-0.1.tm
assets/bwidget1.9.14/dropsite.tcl
assets/bwidget1.9.14/combobox.tcl
assets/iwidgets4.1/combobox.itk
assets/tkbugz/vr_bugz.tcl
assets/tkbugz/tk_bugz.tcl
jni/Tix/PyTix-2.0/2.0/Tkinter.py
jni/SDL2/src/video/winrt/SDL_winrtkeyboard.cpp
jni/snack/demos/tcl/dbrec.tcl
jni/snack/demos/tcl/xs.tcl
jni/tkzinc/Python/demos/testGraphics.py
jni/tkzinc/demos/testGraphics.tcl
jni/tkzinc/demos/groupsPriority.tcl
jni/tkzinc/doc/refman.tex
jni/tkzinc/Perl/demos/Tk/demos/zinc_lib/testGraphics.pl
jni/tkzinc/Perl/demos/Tk/demos/zinc_lib/
groups_priority.pl
jni/sdl2tk/ChangeLog
jni/sdl2tk/tests/event.test
jni/sdl2tk/tests/bind.test
jni/sdl2tk/changes
jni/blt/html/hiertable.html
jni/blt/html/treeview.html
jni/blt/html/hierbox.html
jni/blt/library/hierbox.tcl
jni/blt/library/treeview.tcl
jni/blt/library/hiertable.tcl
jni/blt/man/hiertable.mann
jni/blt/man/treeview.mann
jni/blt/man/hierbox.mann
jni/tkhtml/prebuilt/
hv3-0.1.tm
jni/tkhtml/hv/hv3_form.tcl
A quick search didn't find a single place where the %A substitution
was used in combination with <KeyRelease>.
Best regards,
Christian