japskar
Programmer
- Feb 13, 2002
- 27
When I build a GUI in Tcl/tk, I usually bind the <Return> key to the [OK] button and <ESC> key to the [CANCEL] button. But invoking the [OK] button is exactly what you don't want when you're typing in a Text widget and want to begin a new line.
I wonder if is it possible to temporarily "forget" this binding when the text widget has the focus, so that pressing return begin s a newline.
Can anyone help me to a solution?
Best regards,
Jasper van Dijk
I wonder if is it possible to temporarily "forget" this binding when the text widget has the focus, so that pressing return begin s a newline.
Can anyone help me to a solution?
Best regards,
Jasper van Dijk