| @@ -5,7 +5,7 @@ bind \- Arrange for events to invoke Tk scripts · 4 unmodified lines |
| 5 | 5 | \f5bind\fI tag sequence script\fR |
| 6 | 6 | .sp |
| 7 | 7 | \f5bind\fI tag sequence \f5+\fIscript\fR |
| 8 | | −.SH INTRODUCTION |
| 8 | +.SH DESCRIPTION |
| 9 | 9 | The \f5bind\fR command associates Tk scripts with window events. |
| 10 | 10 | If all three arguments are specified, \f5bind\fR will |
| 11 | 11 | arrange for \fIscript\fR (a Tk script) to be evaluated whenever |
| @@ -22,7 +22,7 @@ If \fIscript\fR is prefixed with a ``-'', then any existing binding for · 10 unmodified lines |
| 22 | 22 | \fIsequence\fR, whose script is exactly the same as \fIscript\fR, is removed. |
| 23 | 23 | The \fItag\fR argument gives the pathname of the window |
| 24 | 24 | to which \fIsequence\fR is bound. |
| 25 | | −.SH "EVENT PATTERNS" |
| 25 | +.SS Event Patterns |
| 26 | 26 | The \fIsequence\fR argument specifies a sequence of one or more |
| 27 | 27 | event patterns, with optional white space between the patterns. Each |
| 28 | 28 | event pattern may |
| @@ -32,11 +32,11 @@ may not be a space character or the character \f5<\fR. This form of · 3 unmodified lines |
| 32 | 32 | pattern matches a \f5KeyPress\fR event for the particular |
| 33 | 33 | character. The second form of pattern is longer but more general. |
| 34 | 34 | It has the following syntax: |
| 35 | | −.RS |
| 35 | +.IP |
| 36 | 36 | .EX |
| 37 | 37 | \f5<\fIevent\f5-\fIevent\f5-\fR...\f5-\fIevent\f5>\fR |
| 38 | 38 | .EE |
| 39 | | −.RE |
| 39 | +.PP |
| 40 | 40 | The following events are accepted: |
| 41 | 41 | .TP |
| 42 | 42 | .BR Key \ or\ Keypress |
| @@ -98,7 +98,14 @@ The event of the widget getting the keyboard focus. · 55 unmodified lines |
| 98 | 98 | .TP |
| 99 | 99 | .B FocusOut |
| 100 | 100 | The event of the widget losing the keyboard focus. |
| 101 | +.TP |
| 102 | +.B Destroy |
| 103 | +The event of the widget being destroyed. |
| 104 | +See |
| 105 | +.IR destroy (9) |
| 106 | +for details of widget destruction. |
| 101 | 107 | .RE |
| 108 | +.PP |
| 102 | 109 | The event sequence can contain any combination of the above |
| 103 | 110 | events. They are treated independently, and if any of the |
| 104 | 111 | events occur, the sequence matches. You cannot combine |
| @@ -106,14 +113,7 @@ key presses of more than one key. Events will not be combined · 1 unmodified line |
| 106 | 113 | on delivery, except that |
| 107 | 114 | .B Motion |
| 108 | 115 | events may be combined with button presses (possibly doubled). |
| 109 | | −.TP |
| 110 | | −.B Destroy |
| 111 | | −The event of the widget being destroyed. |
| 112 | | −See |
| 113 | | −.IR destroy (9) |
| 114 | | −for details of widget destruction. |
| 115 | | − |
| 116 | | −.SH "BINDING SCRIPTS AND SUBSTITUTIONS" |
| 116 | +.SS Binding Scripts and Substitutions |
| 117 | 117 | The \fIscript\fR argument to \f5bind\fR is a Tk script, |
| 118 | 118 | which will be executed whenever the given event sequence occurs. |
| 119 | 119 | If \fIscript\fR contains |