Here's some small bits to add if you like using ^U to get rid of the text in the input widget...
Around line 541, you originally have:
insert the ^U binding after the statements above:$Inputfield->bind("<Return>", \&Say_Click); $Inputfield->bind("<Control-Return>", \&Msg_Click); $Inputfield->bind("<Tab>", \&completeName);
and around line 682, between the end of the Msg_Click sub and the beginning of the completeName sub, I put my ^U subroutine:$Inputfield->bind("<Control-u>", \&clearentrybox);
So far, so good here on my system... a perusal of Tk::Text didn't reveal conflicts with normal keys...###################################################################### +########## # # clearentrybox # # clears the entry box on ^U # sub clearentrybox { $Inputfield->delete(0,'end'); }
(Update: Added context to make locating the spots to put the code a tad easier)
--
Me spell chucker work grate. Need grandma chicken.
In reply to (yakko: ctrl-u addition) Re: Perl/Tk Chatterbox Client
by yakko
in thread Perl/Tk Chatterbox Client
by Shendal
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |