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. ...

Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.