|
From: SourceForge.net <no...@so...> - 2010-03-17 21:10:12
|
Bugs item #2971663, was opened at 2010-03-17 00:42 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2971663&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 07. [entry] Group: development: 8.6b1.1 Status: Open Resolution: Fixed Priority: 5 Private: No Submitted By: Tom Goddard (tom_goddard) Assigned to: Donal K. Fellows (dkf) Summary: Up and down arrow keys in entry fields, Mac Cocoa Initial Comment: Pressing the up or down arrow keys in an entry field in Tk Cocoa 8.6 from Jan 8, 2010 source code causes unicode arrow key codes to be placed in the text variable associated for up or down arrows. Those inserted are invisible in the displayed entry field and lead to errors parsing the entry text by client code which the user cannot understand because they do not see the invisible characters. In general Tk ignores invisible characters (e.g. ctrl-Y, up arrow, ...) that are typed into entry fields unless they have special bindings (like left/right arrow for moving the insert cursor). Aqua Tk (Carbon) 8.5.8 does not put invisible arrow keys in entry fields, nor does Tk Mac X11 8.5.8. I believe the correct behavior is to not put the up / down arrow key unicode into the entry field text variable when the user presses those keys. Here's a Wish script demonstrating the problem. variable tv "test" entry .e -textvariable tv pack .e Click into the entry field, press the down arrow key, then display the string puts $tv -> tei\234\201st This problem may be related to the fact that the %A substitution used to show unicode for KeyPress events is non-empty for Tk Cocoa 8.6 while it is empty for Tk Carbon 8.5.8. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2010-03-17 21:10 Message: but is that disruptive to existing users of entries? (e.g., the history functionality in tkchat) ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2010-03-17 15:59 Message: This should be adjusted to have Up/Down go to beginning/end of the entry, as that is what native OS X widgets do (and likely XP as well, but on OS X right now). ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2010-03-17 09:29 Message: Nice catch. Also was a problem for a ttk::entry. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=2971663&group_id=12997 |