From: SourceForge.net <no...@so...> - 2010-08-30 19:46:38
|
Bugs item #3055902, was opened at 2010-08-30 09:31 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3055902&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: 18. [text] Group: None Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Steven (stevenaaus) Assigned to: Jeffrey Hobbs (hobbs) Summary: Control-a key binding for text widget is broke Initial Comment: The <Control-a> binding for text widgets doesn't work properly with regards to the sel tag. <Control-o> works fine. It seems to be related to newlines somehow, as even the Control-o binding (below) inserts extra newlines. Tested on 8.4 and 8.5. Hope i'm not missing something... ----------------- pack [text .t] .t insert end {some text and more} bind .t <Control-a> {.t tag add sel 0.0 end-1c} bind .t <Control-o> {.t tag add sel 0.0 end-1c} ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2010-08-30 20:46 Message: It's been documented to work that way forever. If you want to change it for your own apps, modify the Text, Entry, Spinbox, TEntry and TSpinbox class bindings for <Control-a>. ---------------------------------------------------------------------- Comment By: Alexandre Ferrieux (ferrieux) Date: 2010-08-30 11:06 Message: Just about anyone on your side of the universe :) Ctrl-A means Home to Emacs and to the emacs mode popular in bash, ksh, tcsh, and GNU readline(). ---------------------------------------------------------------------- Comment By: Steven (stevenaaus) Date: 2010-08-30 10:41 Message: Ok... thanks :) But imho that default binding should be changed, especially since it's already bound to Home and just about everyone in the universe knows what Control-a ~should~ do. ---------------------------------------------------------------------- Comment By: Alexandre Ferrieux (ferrieux) Date: 2010-08-30 09:56 Message: Yup, you're missing the fact that there are existing bindings on other bindtags (here, on Text): % bindtags .t .t Text . all % bind .t <Control-a> % bind Text <Control-a> if {!$tk_strictMotif} { tk::TextSetCursor %W {insert display linestart} } If you want your script to prevent any bindings down the sequence to fire, use [break]. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=3055902&group_id=12997 |