O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Text Bindings

There is an extensive set of default bindings for text widgets. In general, the commands that move the insertion cursor also clear the selection. Often you can hold the Shift key down to extend the selection, or hold the Control key down to move the insertion cursor without affecting the selection. Table 33-8 lists the default bindings for the text widget:

Table 33-8. Bindings for the text widget.
<Any-Key>Inserts normal printing characters.
<Button-1>Sets the insert point, clears the selection, sets focus.
<Control-Button-1>Sets the insert point without affecting the selection.
<B1-Motion>Sweeps out a selection from the insert point.
<Double-Button-1>Selects the word under the mouse.
<Triple-Button-1>Selects the line under the mouse. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required