1<html><head><title>TkTextBindings</title> 2<STYLE TYPE="text/css"> 3 PRE {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 4 XMP {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 5 HR {color: #0066CC; size: 1; border-color: #0066CC; border-width: 1; border-style: none;} 6 INPUT {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #0066CC; font-weight: bold; border-color: #0066CC; border-width: 1; border-style: solid; background-color: #ECF4FC;} 7 TEXTAREA {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #0066CC; font-weight: bold; border-color: #0066CC; border-width: 1; border-style: solid; background-color: #ECF4FC;} 8 SELECT {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #0066CC; font-weight: bold; border-color: #0066CC; border-width: 1; border-style: none; background-color: #ECF4FC;} 9 OPTION {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #0066CC; font-weight: bold; border-color: #0066CC; border-width: 1; border-style: none; background-color: #ECF4FC;} 10 A {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000099; font-weight: normal; text-decoration: none;} 11 A.grey {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #999999; font-weight: normal; text-decoration: none;} 12 A:link {text-decoration: none;} 13 A:visited {text-decoration: none;} 14 A:active {text-decoration: none;} 15 A:hover {color: #0066CC; text-decoration: underline;} 16 P {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 17 LI {list-style-type: square; color: #000033} 18 TD {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 19 TD.title {font-family: Trebuchet MS,Verdana,Arial,Helvetica,Sans-Serif; font-size: 14pt; color: #0066CC; font-weight: bold;} 20 TD.header1 {font-family: Trebuchet MS,Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #9966CC; font-weight: bold;} 21 TD.bold {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033; font-weight: bold;} 22 TD.red {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #FF0000;} 23 TD.grey {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #999999;} 24 FONT {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 25 FONT.bold {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033; font-weight: bold;} 26 FONT.title {font-family: Trebuchet MS,Verdana,Arial,Helvetica,Sans-Serif; font-size: 14pt; color: #0066CC; font-weight: bold;} 27 FONT.header1 {font-family: Trebuchet MS,Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #0066CC; font-weight: bold;} 28 FONT.contents {font-family: Trebuchet MS,Verdana,Arial,Helvetica,Sans-Serif; font-size: 6pt; color: #0066CC; font-weight: normal;} 29 FONT.red {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #FF0000;} 30 FONT.grey {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #999999;} 31 FONT.ce {font-family: Verdana,Copperplate Gothic Bold,Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #000033;} 32 FONT.cegrey {font-family: Copperplate Gothic Bold,Verdana,Arial,Helvetica,Sans-Serif; font-size: 8pt; color: #999999;} 33 H1 {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 18pt; color: #000033; font-weight: bold;} 34 H2 {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 16pt; color: #000033; font-weight: bold;} 35 H3 {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 14pt; color: #000033; font-weight: bold;} 36 H4 {font-family: Verdana,Arial,Helvetica,Sans-Serif; font-size: 12pt; color: #000033; font-weight: bold;} 37</STYLE> 38 39 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 40</head> 41<body leftmargin="0" topmargin="0" alink="#ff9933" background="" bgcolor="#ffffff" link="#0033cc" marginheight="0" marginwidth="0" text="#000066" vlink="#0033cc"> 42 43<table align="left" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%"> 44 45<tbody> 46 47<tr> 48 49<td valign="top" width="50"> </td> 50 51<td valign="top" width="100%"><div> 52<div> 53<h4>Bindings in the Text Binding Tag</h4> 54 55<p>The "Text" binding tag has 92 bindings in X11, 103 in OS X, 90 in 56Windows (Table 1). In addition, several "real events" are mapped to 57"virtual events" that are bound in the "Text" binding tag (Table 2). 58</p> 59 60 61<p><strong>Table 1: List of Bindings</strong> 62</p> 63 64 65<p>Column Headings 66</p> 67 68 <ul type="circle"> 69 <li><strong>Event</strong> is the event "sequence" specified in the bind command</li> 70 <li><strong>Type</strong> 71is either "keyboard" or "mouse" (either may include keyboard 72modifiers); other types of event are not bound in the Text binding tag</li> 73 <li>The next six columns describe the effects of the binding, in eight categories. The columns are: 74 <ul type="circle"> 75 <li><strong>Navigation</strong> - a change in the position of the insert mark ("cursor"), other than to accommodate insertion or removal of text at the cursor</li> 76 <li><strong>Text</strong> - a change in the text content of the widget</li> 77 <li><strong>Selection</strong> - effect on the selection</li> 78 <li><strong>Focus</strong> - changes in keyboard focus</li> 79 <li><strong>Undo Stack</strong> 80- the insertion of separators, and changes to the stack itself (other 81than the default, i.e. recording the modifications to the widget)</li> 82 <li><strong>Other</strong> - other effects are 83 <ul type="circle"> 84 <li>scrolling</li> 85 <li>changes to the clipboard contents</li> 86 <li>'break' commands</li> 87 <li>changes to selection and scroll view when the mouse pointer leaves the widget while Button 1 is pressed</li> 88 <li>initialization for subsequent events </li> 89 </ul> 90 </li> 91 </ul> 92 </li> 93 <li>The next two columns give further information on the effects of the binding: 94 <ul type="circle"> 95 <li><strong>Conditions</strong> - if the conditions stated in this column are not satisfied, the binding has no effect. <em>(Information in this column that is not a condition is given in italics and brackets.)</em></li> 96 <li><strong>Description</strong> - may be provided in an attempt to clarify the effects of the binding </li> 97 </ul> 98 </li> 99 <li><strong>Windowing System Specific</strong> 100- availability on different windowing systems - Tk may not provide 101certain bindings on all windowing systems, and even if it does, the 102windowing system may intercept the event and not pass it on to the 103application </li> 104 </ul> 105 106 107 108<p>Abbreviations used in Table 1: 109</p> 110 111 <ul type="circle"> 112 <li>"DSE" = "delete selection if it exists"</li> 113 <li>"DSEC" = "delete selection if it exists and if the insert mark is inside the selection or at its boundaries"</li> 114 <li>"blocks" = "the existence of this binding prevents the event from being handled by the binding for"</li> 115 <li>"ignore 116sel[ection]" means that the selection is not automatically cancelled or 117overwritten, but its contents may be changed if the alteration to the 118text lies within the selection boundaries; this is the default (i.e. 119applies if the table cell is empty)</li> 120 <li>"Std Kbd Navigation" 121(standard keyboard navigation) means navigation, combined with changing 122the selection if the event includes the Shift modifier, or cancelling 123the selection and inserting a separator on the undo stack if the event 124does not include the Shift modifier</li> 125 <li>"(a)", "(b)" and "x2 (c)", in the <strong>Undo Stack</strong> 126column, refer to the placement of autoseparators (note that if a 127separator is already present at the top of the undo stack another will 128not be inserted): <ul type="circle"> 129 <li>"(a)" is a single autoseparator that is placed in order to split keyboard-entered text into lines</li> 130 <li>"(b)" 131is a single autoseparator that is placed in order to record movement of 132the insert mark: the purpose is to separate changes made to the text in 133different places</li> 134 <li>"x2 (c)" is two autoseparators that are placed before and after the change to the text, in order to make that change atomic </li> 135 </ul> 136 </li> 137 <li>In the <strong>Focus</strong> column, "take" means "take keyboard focus for the widget"; "move" means "keyboard focus is moved to another widget"</li> 138 <li>"NSM" = "not strict Motif", meaning that the variable ::tk_strictMotif is set to boolean false. <em>(For convenience, all consequences of "NSM" are listed in the </em><strong>Conditions</strong><em> column, but information that is not a condition is given in italics and brackets.)</em></li> 139 <li>"preceded 140by" - does not necessarily mean "immediately preceded by", for example 141a series of events might be <Button-1>, <Double-Button-1>, 142<Double-Button-1>.</li> 143 <li>"EOL" = "End Of Line", really means "End of Logical Line", not end of display line </li> 144 </ul> 145 146 147<p><em>File: lib/tk8.5/text.tcl</em> 148</p> 149 150<table border="1" cellpadding="2" cellspacing="0"> 151<tbody><tr> 152<td><strong>Event</strong> </td> 153<td><strong>Type</strong></td> 154<td><strong>Navigation</strong></td> 155<td><strong>Text</strong></td> 156<td><strong>Selection</strong></td> 157<td><strong>Focus</strong></td> 158<td><strong>Undo Stack</strong></td> 159<td><strong>Other</strong></td> 160<td><strong>Description</strong></td> 161<td><strong>Conditions</strong></td> 162<td><strong>Windowing System Specific</strong></td> 163</tr><tr> 164<td><Key> </td> 165<td>Keyboard</td> 166<td> </td> 167<td>Y </td> 168<td>DSEC</td> 169<td> </td> 170<td>if DSEC x2 (c)</td> 171<td> </td> 172<td>DSEC, then insert the keypress character</td> 173<td>widget is not disabled and key is one that inserts text</td> 174<td> </td> 175</tr><tr> 176<td><Key-BackSpace> </td> 177<td>Keyboard</td> 178<td> </td> 179<td>Y </td> 180<td>DSE</td> 181<td> </td> 182<td> </td> 183<td> </td> 184<td>DSE, else delete prev char</td> 185<td> </td> 186<td> </td> 187</tr><tr> 188<td><Key-Delete> </td> 189<td>Keyboard</td> 190<td> </td> 191<td>Y </td> 192<td>DSE</td> 193<td> </td> 194<td> </td> 195<td> </td> 196<td>DSE, else delete next char</td> 197<td> </td> 198<td> </td> 199</tr><tr> 200<td><Key-Return> </td> 201<td>Keyboard</td> 202<td> </td> 203<td>Y </td> 204<td>DSEC</td> 205<td> </td> 206<td>if DSEC x2 (c), else (a)</td> 207<td> </td> 208<td>DSEC, then insert newline, add autoseparator</td> 209<td>widget is not disabled</td> 210<td> </td> 211</tr><tr> 212<td><Key-Tab> </td> 213<td>Keyboard</td> 214<td> </td> 215<td>Y </td> 216<td>DSEC</td> 217<td>take@</td> 218<td>if DSEC x2 (c)</td> 219<td>break to prevent the binding tag "all" from changing the focus</td> 220<td>DSEC and insert tab, then take focus, then break</td> 221<td>widget is not disabled</td> 222<td> </td> 223</tr><tr> 224<td><Shift-Key-Tab> </td> 225<td>Keyboard</td> 226<td> </td> 227<td> </td> 228<td> </td> 229<td> </td> 230<td> </td> 231<td>break to prevent the binding tag "all" from changing the focus</td> 232<td>no action except break; blocks <Key-Tab><br><br>note that 233your "Shift Tab" key probably has a different name and is not covered 234by this binding but by <<PrevWindow>>: see Tables 5, 6 235below.</td> 236<td> </td> 237<td> </td> 238</tr><tr> 239<td><Control-Key-Tab> </td> 240<td>Keyboard</td> 241<td> </td> 242<td> </td> 243<td> </td> 244<td>move</td> 245<td> </td> 246<td> </td> 247<td>move focus to another widget</td> 248<td> </td> 249<td>intercepted by KDE</td> 250</tr><tr> 251<td><Control-Shift-Key-Tab> </td> 252<td>Keyboard</td> 253<td> </td> 254<td> </td> 255<td> </td> 256<td>move</td> 257<td> </td> 258<td> </td> 259<td>move focus to another widget</td> 260<td> </td> 261<td>intercepted by KDE</td> 262</tr><tr> 263<td><Control-Key> </td> 264<td>Keyboard</td> 265<td> </td> 266<td> </td> 267<td> </td> 268<td> </td> 269<td> </td> 270<td> </td> 271<td>no action; blocks <Key></td> 272<td> </td> 273<td> </td> 274</tr><tr> 275<td><Alt-Key> </td> 276<td>Keyboard</td> 277<td> </td> 278<td> </td> 279<td> </td> 280<td> </td> 281<td> </td> 282<td> </td> 283<td>no action; blocks <Key></td> 284<td> </td> 285<td> </td> 286</tr><tr> 287<td><Meta-Key> </td> 288<td>Keyboard</td> 289<td> </td> 290<td> </td> 291<td> </td> 292<td> </td> 293<td> </td> 294<td> </td> 295<td>no action; blocks <Key></td> 296<td> </td> 297<td> </td> 298</tr><tr> 299<td><Command-KeyPress> </td> 300<td>Keyboard</td> 301<td> </td> 302<td> </td> 303<td> </td> 304<td> </td> 305<td> </td> 306<td> </td> 307<td>no action; blocks <Key></td> 308<td> </td> 309<td>Aqua only</td> 310</tr><tr> 311<td><Key-Escape> </td> 312<td>Keyboard</td> 313<td> </td> 314<td> </td> 315<td> </td> 316<td> </td> 317<td> </td> 318<td> </td> 319<td>no action; blocks <Key></td> 320<td> </td> 321<td> </td> 322</tr><tr> 323<td><Key-KP_Enter> </td> 324<td>Keyboard</td> 325<td> </td> 326<td> </td> 327<td> </td> 328<td> </td> 329<td> </td> 330<td> </td> 331<td>no action; blocks <Key></td> 332<td> </td> 333<td> </td> 334</tr><tr> 335<td><Key-Insert> </td> 336<td>Keyboard</td> 337<td> </td> 338<td>Y </td> 339<td>DSEC</td> 340<td> </td> 341<td>if DSEC x2 (c)</td> 342<td> </td> 343<td>DSEC, then insert selected text (use with <Control-1>)</td> 344<td>widget is not disabled and selection is not empty</td> 345<td> </td> 346</tr><tr> 347<td><Meta-Key-b> </td> 348<td>Keyboard</td> 349<td>Y </td> 350<td> </td> 351<td>cancel sel</td> 352<td> </td> 353<td>(b)</td> 354<td> </td> 355<td>Std Kbd Navigation;<br>move to previous word-start</td> 356<td>NSM</td> 357<td> </td> 358</tr><tr> 359<td><Meta-Key-d> </td> 360<td>Keyboard</td> 361<td> </td> 362<td>Y </td> 363<td>ignore sel</td> 364<td> </td> 365<td> </td> 366<td> </td> 367<td>delete to next word-start</td> 368<td>NSM</td> 369<td> </td> 370</tr><tr> 371<td><Meta-Key-f> </td> 372<td>Keyboard</td> 373<td>Y </td> 374<td> </td> 375<td>cancel sel</td> 376<td> </td> 377<td>(b)</td> 378<td> </td> 379<td>Std Kbd Navigation;<br>move to next word-start</td> 380<td>NSM</td> 381<td> </td> 382</tr><tr> 383<td><Meta-Key-less> </td> 384<td>Keyboard</td> 385<td>Y </td> 386<td> </td> 387<td>cancel sel</td> 388<td> </td> 389<td>(b)</td> 390<td> </td> 391<td>Std Kbd Navigation;<br>move to top (1.0)</td> 392<td>NSM</td> 393<td> </td> 394</tr><tr> 395<td><Meta-Key-greater> </td> 396<td>Keyboard</td> 397<td>Y </td> 398<td> </td> 399<td>cancel sel</td> 400<td> </td> 401<td>(b)</td> 402<td> </td> 403<td>Std Kbd Navigation;<br>move to bottom (end-1c)</td> 404<td>NSM</td> 405<td> </td> 406</tr><tr> 407<td><Meta-Key-BackSpace> </td> 408<td>Keyboard</td> 409<td> </td> 410<td>Y </td> 411<td>ignore sel</td> 412<td> </td> 413<td> </td> 414<td> </td> 415<td>delete to previous word-start</td> 416<td>NSM</td> 417<td> </td> 418</tr><tr> 419<td><Meta-Key-Delete> </td> 420<td>Keyboard</td> 421<td> </td> 422<td>Y </td> 423<td>ignore sel</td> 424<td> </td> 425<td> </td> 426<td> </td> 427<td>delete to previous word-start</td> 428<td>NSM</td> 429<td> </td> 430</tr><tr> 431<td><Control-Key-a> </td> 432<td>Keyboard</td> 433<td>Y </td> 434<td> </td> 435<td>cancel sel</td> 436<td> </td> 437<td>(b)</td> 438<td> </td> 439<td>Std Kbd Navigation;<br>move to display line start</td> 440<td>NSM</td> 441<td> </td> 442</tr><tr> 443<td><Control-Key-b> </td> 444<td>Keyboard</td> 445<td>Y </td> 446<td> </td> 447<td>cancel sel</td> 448<td> </td> 449<td>(b)</td> 450<td> </td> 451<td>Std Kbd Navigation;<br>move -1 char</td> 452<td>NSM</td> 453<td> </td> 454</tr><tr> 455<td><Control-Key-d> </td> 456<td>Keyboard</td> 457<td> </td> 458<td>Y </td> 459<td>ignore sel</td> 460<td> </td> 461<td> </td> 462<td> </td> 463<td>delete next char</td> 464<td>NSM</td> 465<td> </td> 466</tr><tr> 467<td><Control-Key-e> </td> 468<td>Keyboard</td> 469<td>Y </td> 470<td> </td> 471<td>cancel sel</td> 472<td> </td> 473<td>(b)</td> 474<td> </td> 475<td>Std Kbd Navigation;<br>move to display line end</td> 476<td>NSM</td> 477<td> </td> 478</tr><tr> 479<td><Control-Key-f> </td> 480<td>Keyboard</td> 481<td>Y </td> 482<td> </td> 483<td>cancel sel</td> 484<td> </td> 485<td>(b)</td> 486<td> </td> 487<td>Std Kbd Navigation;<br>move +1 char</td> 488<td>NSM</td> 489<td> </td> 490</tr><tr> 491<td><Control-Key-h> </td> 492<td>Keyboard</td> 493<td> </td> 494<td>Y </td> 495<td>ignore sel</td> 496<td> </td> 497<td> </td> 498<td> </td> 499<td>Backspace: delete previous char</td> 500<td>NSM, and insert mark not at 1.0</td> 501<td> </td> 502</tr><tr> 503<td><Control-Key-i> </td> 504<td>Keyboard</td> 505<td> </td> 506<td>Y </td> 507<td>DSEC</td> 508<td> </td> 509<td>if DSEC x2 (c)</td> 510<td> </td> 511<td>DSEC, then insert tab char</td> 512<td>widget is not disabled</td> 513<td> </td> 514</tr><tr> 515<td><Control-Key-k> </td> 516<td>Keyboard</td> 517<td> </td> 518<td>Y </td> 519<td>ignore sel</td> 520<td> </td> 521<td> </td> 522<td> </td> 523<td>if at EOL, delete EOL; else delete to EOL</td> 524<td>NSM</td> 525<td> </td> 526</tr><tr> 527<td><Control-Key-n> </td> 528<td>Keyboard</td> 529<td>Y </td> 530<td> </td> 531<td>cancel sel</td> 532<td> </td> 533<td>(b)</td> 534<td> </td> 535<td>Std Kbd Navigation;<br>move to next line</td> 536<td>NSM</td> 537<td> </td> 538</tr><tr> 539<td><Control-Key-o> </td> 540<td>Keyboard</td> 541<td> </td> 542<td>Y </td> 543<td>ignore sel</td> 544<td> </td> 545<td> </td> 546<td> </td> 547<td>insert newline after insert mark</td> 548<td>NSM</td> 549<td> </td> 550</tr><tr> 551<td><Control-Key-p> </td> 552<td>Keyboard</td> 553<td>Y </td> 554<td> </td> 555<td>cancel sel</td> 556<td> </td> 557<td>(b)</td> 558<td> </td> 559<td>Std Kbd Navigation;<br>move to previous line</td> 560<td>NSM</td> 561<td> </td> 562</tr><tr> 563<td><Control-Key-t> </td> 564<td>Keyboard</td> 565<td> </td> 566<td>Y </td> 567<td>ignore sel</td> 568<td> </td> 569<td>x2 (c)</td> 570<td> </td> 571<td>swap chars each side of insert cursor; move cursor +1 char</td> 572<td>NSM, and insert mark not at 1.0</td> 573<td> </td> 574</tr><tr> 575<td><Control-Key-backslash> </td> 576<td>Keyboard</td> 577<td> </td> 578<td> </td> 579<td>cancel sel </td> 580<td> </td> 581<td> </td> 582<td> </td> 583<td>Clear Selection</td> 584<td> </td> 585<td> </td> 586</tr><tr> 587<td><Control-Key-slash> </td> 588<td>Keyboard</td> 589<td> </td> 590<td> </td> 591<td>change sel </td> 592<td> </td> 593<td> </td> 594<td> </td> 595<td>Select All</td> 596<td> </td> 597<td> </td> 598</tr><tr> 599<td><Shift-Key-Select> </td> 600<td>Keyboard</td> 601<td> </td> 602<td> </td> 603<td>change sel </td> 604<td> </td> 605<td> </td> 606<td> </td> 607<td>select from anchor to insert</td> 608<td> </td> 609<td> </td> 610</tr><tr> 611<td><Control-Shift-Key-space></td> 612<td>Keyboard</td> 613<td> </td> 614<td> </td> 615<td>change sel </td> 616<td> </td> 617<td> </td> 618<td> </td> 619<td>select from anchor to insert</td> 620<td> </td> 621<td> </td> 622</tr><tr> 623<td><Key-Select> </td> 624<td>Keyboard</td> 625<td> </td> 626<td> </td> 627<td>ignore sel; set anchor</td> 628<td> </td> 629<td> </td> 630<td> </td> 631<td>set selection anchor</td> 632<td> </td> 633<td> </td> 634</tr><tr> 635<td><Control-Key-space> </td> 636<td>Keyboard</td> 637<td> </td> 638<td> </td> 639<td>ignore sel; set anchor</td> 640<td> </td> 641<td> </td> 642<td> </td> 643<td>set selection anchor</td> 644<td> </td> 645<td> </td> 646</tr><tr> 647<td></td> 648<td></td> 649<td></td> 650<td></td> 651<td></td> 652<td></td> 653<td></td> 654<td></td> 655<td>Navigation Events</td> 656<td> </td> 657<td> </td> 658</tr><tr> 659<td><Key-Left> </td> 660<td>Keyboard</td> 661<td>Y </td> 662<td> </td> 663<td>cancel sel</td> 664<td> </td> 665<td>(b)</td> 666<td> </td> 667<td>Std Kbd Navigation</td> 668<td> </td> 669<td> </td> 670</tr><tr> 671<td><Key-Right> </td> 672<td>Keyboard</td> 673<td>Y </td> 674<td> </td> 675<td>cancel sel</td> 676<td> </td> 677<td>(b)</td> 678<td> </td> 679<td>Std Kbd Navigation</td> 680<td> </td> 681<td> </td> 682</tr><tr> 683<td><Key-Up> </td> 684<td>Keyboard</td> 685<td>Y </td> 686<td> </td> 687<td>cancel sel</td> 688<td> </td> 689<td>(b)</td> 690<td> </td> 691<td>Std Kbd Navigation</td> 692<td> </td> 693<td> </td> 694</tr><tr> 695<td><Key-Down> </td> 696<td>Keyboard</td> 697<td>Y </td> 698<td> </td> 699<td>cancel sel</td> 700<td> </td> 701<td>(b)</td> 702<td> </td> 703<td>Std Kbd Navigation</td> 704<td> </td> 705<td> </td> 706</tr><tr> 707<td><Shift-Key-Left> </td> 708<td>Keyboard</td> 709<td>Y </td> 710<td> </td> 711<td>change sel</td> 712<td> </td> 713<td> </td> 714<td> </td> 715<td>Std Kbd Navigation</td> 716<td> </td> 717<td> </td> 718</tr><tr> 719<td><Shift-Key-Right> </td> 720<td>Keyboard</td> 721<td>Y </td> 722<td> </td> 723<td>change sel</td> 724<td> </td> 725<td> </td> 726<td> </td> 727<td>Std Kbd Navigation</td> 728<td> </td> 729<td> </td> 730</tr><tr> 731<td><Shift-Key-Up> </td> 732<td>Keyboard</td> 733<td>Y </td> 734<td> </td> 735<td>change sel</td> 736<td> </td> 737<td> </td> 738<td> </td> 739<td>Std Kbd Navigation</td> 740<td> </td> 741<td> </td> 742</tr><tr> 743<td><Shift-Key-Down> </td> 744<td>Keyboard</td> 745<td>Y </td> 746<td> </td> 747<td>change sel</td> 748<td> </td> 749<td> </td> 750<td> </td> 751<td>Std Kbd Navigation</td> 752<td> </td> 753<td> </td> 754</tr><tr> 755<td><Control-Key-Left> </td> 756<td>Keyboard</td> 757<td>Y </td> 758<td> </td> 759<td>cancel sel</td> 760<td> </td> 761<td>(b)</td> 762<td> </td> 763<td>Std Kbd Navigation</td> 764<td> </td> 765<td> </td> 766</tr><tr> 767<td><Control-Key-Right> </td> 768<td>Keyboard</td> 769<td>Y </td> 770<td> </td> 771<td>cancel sel</td> 772<td> </td> 773<td>(b)</td> 774<td> </td> 775<td>Std Kbd Navigation</td> 776<td> </td> 777<td> </td> 778</tr><tr> 779<td><Control-Key-Up> </td> 780<td>Keyboard</td> 781<td>Y </td> 782<td> </td> 783<td>cancel sel</td> 784<td> </td> 785<td>(b)</td> 786<td> </td> 787<td>Std Kbd Navigation</td> 788<td> </td> 789<td> </td> 790</tr><tr> 791<td><Control-Key-Down> </td> 792<td>Keyboard</td> 793<td>Y </td> 794<td> </td> 795<td>cancel sel</td> 796<td> </td> 797<td>(b)</td> 798<td> </td> 799<td>Std Kbd Navigation</td> 800<td> </td> 801<td> </td> 802</tr><tr> 803<td><Control-Shift-Key-Left> </td> 804<td>Keyboard</td> 805<td>Y </td> 806<td> </td> 807<td>change sel</td> 808<td> </td> 809<td> </td> 810<td> </td> 811<td>Std Kbd Navigation</td> 812<td> </td> 813<td> </td> 814</tr><tr> 815<td><Control-Shift-Key-Right></td> 816<td>Keyboard</td> 817<td>Y </td> 818<td> </td> 819<td>change sel</td> 820<td> </td> 821<td> </td> 822<td> </td> 823<td>Std Kbd Navigation</td> 824<td> </td> 825<td> </td> 826</tr><tr> 827<td><Control-Shift-Key-Up> </td> 828<td>Keyboard</td> 829<td>Y </td> 830<td> </td> 831<td>change sel</td> 832<td> </td> 833<td> </td> 834<td> </td> 835<td>Std Kbd Navigation</td> 836<td> </td> 837<td> </td> 838</tr><tr> 839<td><Control-Shift-Key-Down> </td> 840<td>Keyboard</td> 841<td>Y </td> 842<td> </td> 843<td>change sel</td> 844<td> </td> 845<td> </td> 846<td> </td> 847<td>Std Kbd Navigation</td> 848<td> </td> 849<td> </td> 850</tr><tr> 851<td><Key-Home> </td> 852<td>Keyboard</td> 853<td>Y </td> 854<td> </td> 855<td>cancel sel</td> 856<td> </td> 857<td>(b)</td> 858<td> </td> 859<td>Std Kbd Navigation</td> 860<td> </td> 861<td> </td> 862</tr><tr> 863<td><Key-End> </td> 864<td>Keyboard</td> 865<td>Y </td> 866<td> </td> 867<td>cancel sel</td> 868<td> </td> 869<td>(b)</td> 870<td> </td> 871<td>Std Kbd Navigation</td> 872<td> </td> 873<td> </td> 874</tr><tr> 875<td><Control-Key-Home> </td> 876<td>Keyboard</td> 877<td>Y </td> 878<td> </td> 879<td>cancel sel</td> 880<td> </td> 881<td>(b)</td> 882<td> </td> 883<td>Std Kbd Navigation</td> 884<td> </td> 885<td> </td> 886</tr><tr> 887<td><Control-Key-End> </td> 888<td>Keyboard</td> 889<td>Y </td> 890<td> </td> 891<td>cancel sel</td> 892<td> </td> 893<td>(b)</td> 894<td> </td> 895<td>Std Kbd Navigation</td> 896<td> </td> 897<td> </td> 898</tr><tr> 899<td><Shift-Key-Home> </td> 900<td>Keyboard</td> 901<td>Y </td> 902<td> </td> 903<td>change sel</td> 904<td> </td> 905<td> </td> 906<td> </td> 907<td>Std Kbd Navigation</td> 908<td> </td> 909<td> </td> 910</tr><tr> 911<td><Shift-Key-End> </td> 912<td>Keyboard</td> 913<td>Y </td> 914<td> </td> 915<td>change sel</td> 916<td> </td> 917<td> </td> 918<td> </td> 919<td>Std Kbd Navigation</td> 920<td> </td> 921<td> </td> 922</tr><tr> 923<td><Control-Shift-Key-Home> </td> 924<td>Keyboard</td> 925<td>Y </td> 926<td> </td> 927<td>change sel</td> 928<td> </td> 929<td> </td> 930<td> </td> 931<td>Std Kbd Navigation</td> 932<td> </td> 933<td> </td> 934</tr><tr> 935<td><Control-Shift-Key-End> </td> 936<td>Keyboard</td> 937<td>Y </td> 938<td> </td> 939<td>change sel</td> 940<td> </td> 941<td> </td> 942<td> </td> 943<td>Std Kbd Navigation</td> 944<td> </td> 945<td> </td> 946</tr><tr> 947<td><Key-Next> </td> 948<td>Keyboard</td> 949<td>Y </td> 950<td> </td> 951<td>cancel sel</td> 952<td> </td> 953<td>(b)</td> 954<td> </td> 955<td>Std Kbd Navigation</td> 956<td> </td> 957<td> </td> 958</tr><tr> 959<td><Key-Prior> </td> 960<td>Keyboard</td> 961<td>Y </td> 962<td> </td> 963<td>cancel sel</td> 964<td> </td> 965<td>(b)</td> 966<td> </td> 967<td>Std Kbd Navigation</td> 968<td> </td> 969<td> </td> 970</tr><tr> 971<td><Shift-Key-Next> </td> 972<td>Keyboard</td> 973<td>Y </td> 974<td> </td> 975<td>change sel</td> 976<td> </td> 977<td> </td> 978<td> </td> 979<td>Std Kbd Navigation</td> 980<td> </td> 981<td> </td> 982</tr><tr> 983<td><Shift-Key-Prior> </td> 984<td>Keyboard</td> 985<td>Y </td> 986<td> </td> 987<td>change sel</td> 988<td> </td> 989<td> </td> 990<td> </td> 991<td>Std Kbd Navigation</td> 992<td> </td> 993<td> </td> 994</tr><tr> 995<td><Control-Key-Next> </td> 996<td>Keyboard</td> 997<td> </td> 998<td> </td> 999<td> </td> 1000<td> </td> 1001<td> </td> 1002<td>horizontal scrolling</td> 1003<td>No navigation (insert cursor is unchanged)</td> 1004<td> </td> 1005<td> </td> 1006</tr><tr> 1007<td><Control-Key-Prior> </td> 1008<td>Keyboard</td> 1009<td> </td> 1010<td> </td> 1011<td> </td> 1012<td> </td> 1013<td> </td> 1014<td>horizontal scrolling</td> 1015<td>No navigation (insert cursor is unchanged)</td> 1016<td> </td> 1017<td> </td> 1018</tr><tr> 1019<td><Option-Left> </td> 1020<td>Keyboard</td> 1021<td>Y</td> 1022<td> </td> 1023<td>cancel sel</td> 1024<td> </td> 1025<td>(b)</td> 1026<td> </td> 1027<td>Std Kbd Navigation</td> 1028<td> </td> 1029<td>Aqua Only (Option Key)</td> 1030</tr><tr> 1031<td><Option-Right> </td> 1032<td>Keyboard</td> 1033<td>Y</td> 1034<td> </td> 1035<td>cancel sel</td> 1036<td> </td> 1037<td>(b)</td> 1038<td> </td> 1039<td>Std Kbd Navigation</td> 1040<td> </td> 1041<td>Aqua Only (Option Key)</td> 1042</tr><tr> 1043<td><Option-Up> </td> 1044<td>Keyboard</td> 1045<td>Y</td> 1046<td> </td> 1047<td>cancel sel</td> 1048<td> </td> 1049<td>(b)</td> 1050<td> </td> 1051<td>Std Kbd Navigation</td> 1052<td> </td> 1053<td>Aqua Only (Option Key)</td> 1054</tr><tr> 1055<td><Option-Down> </td> 1056<td>Keyboard</td> 1057<td>Y</td> 1058<td> </td> 1059<td>cancel sel</td> 1060<td> </td> 1061<td>(b)</td> 1062<td> </td> 1063<td>Std Kbd Navigation</td> 1064<td> </td> 1065<td>Aqua Only (Option Key)</td> 1066</tr><tr> 1067<td><Shift-Option-Left> </td> 1068<td>Keyboard</td> 1069<td>Y</td> 1070<td> </td> 1071<td>change sel</td> 1072<td> </td> 1073<td> </td> 1074<td> </td> 1075<td>Std Kbd Navigation</td> 1076<td> </td> 1077<td>Aqua Only (Option Key)</td> 1078</tr><tr> 1079<td><Shift-Option-Right> </td> 1080<td>Keyboard</td> 1081<td>Y</td> 1082<td> </td> 1083<td>change sel</td> 1084<td> </td> 1085<td> </td> 1086<td> </td> 1087<td>Std Kbd Navigation</td> 1088<td> </td> 1089<td>Aqua Only (Option Key)</td> 1090</tr><tr> 1091<td><Shift-Option-Up> </td> 1092<td>Keyboard</td> 1093<td>Y</td> 1094<td> </td> 1095<td>change sel</td> 1096<td> </td> 1097<td> </td> 1098<td> </td> 1099<td>Std Kbd Navigation</td> 1100<td> </td> 1101<td>Aqua Only (Option Key)</td> 1102</tr><tr> 1103<td><Shift-Option-Down> </td> 1104<td>Keyboard</td> 1105<td>Y</td> 1106<td> </td> 1107<td>change sel</td> 1108<td> </td> 1109<td> </td> 1110<td> </td> 1111<td>Std Kbd Navigation</td> 1112<td> </td> 1113<td>Aqua Only (Option Key)</td> 1114</tr><tr> 1115<td><Control-v> </td> 1116<td>Keyboard</td> 1117<td> </td> 1118<td> </td> 1119<td> </td> 1120<td> </td> 1121<td> </td> 1122<td>vertical scrolling</td> 1123<td>No navigation (insert cursor is unchanged)</td> 1124<td> </td> 1125<td>Aqua Only </td> 1126</tr><tr> 1127<td></td> 1128<td></td> 1129<td></td> 1130<td></td> 1131<td></td> 1132<td></td> 1133<td></td> 1134<td></td> 1135<td></td> 1136<td></td> 1137</tr><tr> 1138<td><<Undo>> </td> 1139<td>Keyboard</td> 1140<td>Y</td> 1141<td>Y</td> 1142<td>ignore sel</td> 1143<td> </td> 1144<td>move item to redo stack</td> 1145<td> </td> 1146<td>Undo changes back to previous separator</td> 1147<td>undo activated for the widget</td> 1148<td> </td> 1149</tr><tr> 1150<td><<Redo>> </td> 1151<td>Keyboard</td> 1152<td>Y</td> 1153<td>Y</td> 1154<td>ignore sel</td> 1155<td> </td> 1156<td>move item from redo stack</td> 1157<td> </td> 1158<td>Redo "undone" changes up to the next separator</td> 1159<td>undo activated for the widget</td> 1160<td> </td> 1161</tr><tr> 1162<td><<Cut>> </td> 1163<td>Keyboard</td> 1164<td> </td> 1165<td>Y</td> 1166<td>cancel sel</td> 1167<td> </td> 1168<td> </td> 1169<td>change clipboard</td> 1170<td>Move text from selection to clipboard</td> 1171<td>selection not empty</td> 1172<td> </td> 1173</tr><tr> 1174<td><<Copy>> </td> 1175<td>Keyboard</td> 1176<td> </td> 1177<td> </td> 1178<td>ignore sel</td> 1179<td> </td> 1180<td> </td> 1181<td>change clipboard</td> 1182<td>Copy text from selection to clipboard</td> 1183<td>selection not empty</td> 1184<td> </td> 1185</tr><tr> 1186<td><<Paste>> </td> 1187<td>Keyboard</td> 1188<td> </td> 1189<td>Y</td> 1190<td>ignore sel (x11), DSE (other)</td> 1191<td> </td> 1192<td>x2 (c)</td> 1193<td> </td> 1194<td>Delete selection (except on x11), then copy text from clipboard to insert mark</td> 1195<td>clipboard not empty</td> 1196<td> </td> 1197</tr><tr> 1198<td><<Clear>> </td> 1199<td>Keyboard</td> 1200<td> </td> 1201<td>Y</td> 1202<td>DSE</td> 1203<td> </td> 1204<td> </td> 1205<td> </td> 1206<td>delete selected text</td> 1207<td> </td> 1208<td>Aqua Only*</td> 1209</tr><tr> 1210<td><<PasteSelection>> </td> 1211<td>Mouse</td> 1212<td>Y </td> 1213<td>Y</td> 1214<td>ignore sel</td> 1215<td>take</td> 1216<td>x2 (c)</td> 1217<td> </td> 1218<td>Mapped to <ButtonRelease-2>.<br>If "strict Motif", or if the 1219mouse pointer has not moved since <Button-2>, then navigate, 1220paste selection, and if widget not disabled take focus.<br>If "not 1221strict Motif" ("NSM"), and if the mouse has moved since 1222<Button-2>, then nothing is done, and instead <B2-Motion> 1223implements ScanDrag.</td> 1224<td><em>(N.B. precise action depends on NSM)</em></td> 1225<td> </td> 1226</tr><tr> 1227<td><Button-1> </td> 1228<td>Mouse </td> 1229<td>Y</td> 1230<td> </td> 1231<td>cancel sel</td> 1232<td>take</td> 1233<td>(b)</td> 1234<td> </td> 1235<td>navigate; if widget not disabled or if platform is windows, take focus</td> 1236<td> </td> 1237<td> </td> 1238</tr><tr> 1239<td><ButtonRelease-1> </td> 1240<td>Mouse </td> 1241<td> </td> 1242<td> </td> 1243<td> </td> 1244<td> </td> 1245<td> </td> 1246<td>See "Description"</td> 1247<td>See <B1-Leave></td> 1248<td> </td> 1249<td> </td> 1250</tr><tr> 1251<td><B1-Motion> </td> 1252<td>Mouse </td> 1253<td>Y</td> 1254<td> </td> 1255<td>change sel</td> 1256<td> </td> 1257<td> </td> 1258<td> </td> 1259<td> </td> 1260<td> </td> 1261<td> </td> 1262</tr><tr> 1263<td><Shift-Button-1> </td> 1264<td>Mouse </td> 1265<td>Y</td> 1266<td> </td> 1267<td>change sel</td> 1268<td> </td> 1269<td> </td> 1270<td> </td> 1271<td> </td> 1272<td> </td> 1273<td> </td> 1274</tr><tr> 1275<td><Control-Button-1> </td> 1276<td>Mouse </td> 1277<td>Y</td> 1278<td> </td> 1279<td>ignore sel</td> 1280<td> </td> 1281<td> </td> 1282<td> </td> 1283<td> </td> 1284<td> </td> 1285<td> </td> 1286</tr><tr> 1287<td><B1-Enter> </td> 1288<td>Mouse </td> 1289<td> </td> 1290<td> </td> 1291<td> </td> 1292<td> </td> 1293<td> </td> 1294<td>See "Description"</td> 1295<td>See <B1-Leave></td> 1296<td> </td> 1297<td> </td> 1298</tr><tr> 1299<td><B1-Leave> </td> 1300<td>Mouse </td> 1301<td> </td> 1302<td> </td> 1303<td> </td> 1304<td> </td> 1305<td> </td> 1306<td>See "Description"</td> 1307<td>Start monitoring the mouse coordinates in order to update the 1308selection range and scroll view of the widget. Do not stop until either 1309<B1-Enter> or <ButtonRelease-1>.</td> 1310<td> </td> 1311<td> </td> 1312</tr><tr> 1313<td><Double-Button-1> </td> 1314<td>Mouse </td> 1315<td>Y</td> 1316<td> </td> 1317<td>change sel</td> 1318<td> </td> 1319<td> </td> 1320<td> </td> 1321<td>preceded by <Button-1></td> 1322<td> </td> 1323<td> </td> 1324</tr><tr> 1325<td><Double-Shift-Button-1> </td> 1326<td>Mouse </td> 1327<td> </td> 1328<td> </td> 1329<td>change sel</td> 1330<td> </td> 1331<td> </td> 1332<td> </td> 1333<td>preceded by <Shift-Button-1></td> 1334<td> </td> 1335<td> </td> 1336</tr><tr> 1337<td><Triple-Button-1> </td> 1338<td>Mouse </td> 1339<td>Y</td> 1340<td> </td> 1341<td>change sel</td> 1342<td> </td> 1343<td> </td> 1344<td> </td> 1345<td>preceded by <Button-1>, <Double-Button-1></td> 1346<td> </td> 1347<td> </td> 1348</tr><tr> 1349<td><Triple-Shift-Button-1> </td> 1350<td>Mouse </td> 1351<td> </td> 1352<td> </td> 1353<td>change sel</td> 1354<td> </td> 1355<td> </td> 1356<td> </td> 1357<td>preceded by <Shift-Button-1>, <Double-Shift-Button-1></td> 1358<td> </td> 1359<td> </td> 1360</tr><tr> 1361<td><Button-2> </td> 1362<td>Mouse </td> 1363<td> </td> 1364<td> </td> 1365<td>ignore sel</td> 1366<td> </td> 1367<td> </td> 1368<td>See "Description"</td> 1369<td>Initialization for <ButtonRelease-2> and possible <B2-Motion> events</td> 1370<td>NSM</td> 1371<td> </td> 1372</tr><tr> 1373<td><B2-Motion> </td> 1374<td>Mouse </td> 1375<td> </td> 1376<td> </td> 1377<td>ignore sel</td> 1378<td> </td> 1379<td> </td> 1380<td>ScanDrag scrolling</td> 1381<td>No navigation (insert cursor is unchanged)</td> 1382<td>NSM</td> 1383<td> </td> 1384</tr><tr> 1385<td></td> 1386<td></td> 1387<td></td> 1388<td></td> 1389<td></td> 1390<td></td> 1391<td></td> 1392<td></td> 1393<td></td> 1394<td></td> 1395</tr><tr> 1396<td><Button-4> </td> 1397<td>Mouse </td> 1398<td> </td> 1399<td> </td> 1400<td> </td> 1401<td> </td> 1402<td> </td> 1403<td>vertical scrolling</td> 1404<td> </td> 1405<td>NSM</td> 1406<td>X11 only - for Mouse Wheel</td> 1407</tr><tr> 1408<td><Button-5> </td> 1409<td>Mouse </td> 1410<td> </td> 1411<td> </td> 1412<td> </td> 1413<td> </td> 1414<td> </td> 1415<td>vertical scrolling</td> 1416<td> </td> 1417<td>NSM</td> 1418<td>X11 only - for Mouse Wheel</td> 1419</tr><tr> 1420<td><MouseWheel> </td> 1421<td>Mouse </td> 1422<td> </td> 1423<td> </td> 1424<td> </td> 1425<td> </td> 1426<td> </td> 1427<td>vertical scrolling</td> 1428<td> </td> 1429<td> </td> 1430<td>Not Aqua</td> 1431</tr><tr> 1432<td><MouseWheel> </td> 1433<td>Mouse </td> 1434<td> </td> 1435<td> </td> 1436<td> </td> 1437<td> </td> 1438<td> </td> 1439<td>vertical scrolling</td> 1440<td> </td> 1441<td> </td> 1442<td>Aqua Only</td> 1443</tr><tr> 1444<td><Option-MouseWheel> </td> 1445<td>Mouse </td> 1446<td> </td> 1447<td> </td> 1448<td> </td> 1449<td> </td> 1450<td> </td> 1451<td>vertical scrolling</td> 1452<td> </td> 1453<td> </td> 1454<td>Aqua Only (Option Key)</td> 1455</tr><tr> 1456<td><Shift-MouseWheel> </td> 1457<td>Mouse </td> 1458<td> </td> 1459<td> </td> 1460<td> </td> 1461<td> </td> 1462<td> </td> 1463<td>horizontal scrolling</td> 1464<td> </td> 1465<td> </td> 1466<td>Aqua Only </td> 1467</tr><tr> 1468<td><Shift-Option-MouseWheel></td> 1469<td>Mouse </td> 1470<td> </td> 1471<td> </td> 1472<td> </td> 1473<td> </td> 1474<td> </td> 1475<td>horizontal scrolling</td> 1476<td> </td> 1477<td> </td> 1478<td>Aqua Only (Option Key)</td> 1479</tr> 1480</tbody></table> 1481 1482 1483<p> * The virtual event <<Clear>> is provided on all 1484windowing systems, but is used only on Aqua, where it is mapped to the 1485<Clear> key.<br> 1486 @ Why does <Key-Tab> take focus? The widget must already have focus to receive the event, so why take it? <em>??Possibly 1487some platforms respond to <Tab> by moving the focus before 1488passing the event to the application/window that received it - if so, 1489reclaiming the focus would be necessary here.</em> 1490</p> 1491 1492 1493<p> The widget prevents text insertion or deletion if its state is 1494"disabled". However, the widget's bindings still fire, and so the 1495bindings test the widget state, to provide control over operations 1496other than text manipulation - usually changes to focus, and placement 1497of autoseparators. 1498</p> 1499 1500 1501<p><strong>Table 2: Real and Virtual Events</strong> 1502</p> 1503 1504 1505<p>Specifically, the Table shows mappings of <Real Events> to 1506<<Virtual Events>> that are bound in the 'Text' binding 1507tag. 1508</p> 1509 1510 1511<p>The windowing system, [tk windowingsystem], governs the aspects of 1512system-dependence discussed in Tables 1 and 2. System-dependence is 1513also expressed by the values of the array variable ::tcl_platform, 1514which is used by <em>Text</em> in other ways <font class="red">(to be discussed)</font>. 1515</p> 1516 1517 1518 <ul type="circle"> 1519 <li><strong>Windowing Systems</strong> - abbreviations used in Table 2: 1520 <ul type="circle"> 1521 <li>"X" = x11 (Linux, UNIX, BSD)</li> 1522 <li>"W" = win32 (Windows)</li> 1523 <li>"M" = aqua (Mac OS X)</li> 1524 <li>"-" = mapping is not included on this platform </li> 1525 </ul> 1526 </li> 1527 <li><strong>Conditions</strong> - the event mapping is created iff the conditions stated in this column are satisfied 1528 <ul type="circle"> 1529 <li>"NSM" = "not strict Motif", meaning that the variable $::tk_strictMotif is set to boolean false. </li> 1530 </ul> 1531 </li> 1532 </ul> 1533 1534 1535<p><em>File: lib/tk8.5/tk.tcl</em> 1536</p> 1537 1538<table border="1" cellpadding="2" cellspacing="0"> 1539<tbody><tr> 1540<td><strong>Real Event</strong> </td> 1541<td><strong>Type</strong></td> 1542<td><strong>Virtual Event</strong></td> 1543<td><strong>Windowing Systems</strong></td> 1544<td><strong>Conditions</strong></td> 1545</tr><tr> 1546<td><ButtonRelease-2> </td> 1547<td>Mouse </td> 1548<td><<PasteSelection>></td> 1549<td>XWM </td> 1550<td> </td> 1551</tr><tr> 1552<td><Shift-Key-Delete> </td> 1553<td>Keyboard</td> 1554<td><<Cut>> </td> 1555<td>-W- </td> 1556<td> </td> 1557</tr><tr> 1558<td><Shift-Key-Insert> </td> 1559<td>Keyboard</td> 1560<td><<Paste>> </td> 1561<td>-W- </td> 1562<td> </td> 1563</tr><tr> 1564<td><Control-Key-Insert> </td> 1565<td>Keyboard</td> 1566<td><<Copy>> </td> 1567<td>-W- </td> 1568<td> </td> 1569</tr><tr> 1570<td><Control-Key-c> </td> 1571<td>Keyboard</td> 1572<td><<Copy>> </td> 1573<td>XW- </td> 1574<td> </td> 1575</tr><tr> 1576<td><Control-Key-v> </td> 1577<td>Keyboard</td> 1578<td><<Paste>> </td> 1579<td>XW- </td> 1580<td> </td> 1581</tr><tr> 1582<td><Control-Key-w> </td> 1583<td>Keyboard</td> 1584<td><<Cut>> </td> 1585<td>X-- </td> 1586<td>NSM</td> 1587</tr><tr> 1588<td><Control-Key-x> </td> 1589<td>Keyboard</td> 1590<td><<Cut>> </td> 1591<td>XW- </td> 1592<td> </td> 1593</tr><tr> 1594<td><Control-Key-y> </td> 1595<td>Keyboard</td> 1596<td><<Redo>> </td> 1597<td>-W- </td> 1598<td> </td> 1599</tr><tr> 1600<td><Control-Key-y> </td> 1601<td>Keyboard</td> 1602<td><<Paste>> </td> 1603<td>X-- </td> 1604<td>NSM</td> 1605</tr><tr> 1606<td><Control-Key-z> </td> 1607<td>Keyboard</td> 1608<td><<Undo>> </td> 1609<td>XW- </td> 1610<td> </td> 1611</tr><tr> 1612<td><Control-Key-Z> </td> 1613<td>Keyboard</td> 1614<td><<Redo>> </td> 1615<td>X-- </td> 1616<td> </td> 1617</tr><tr> 1618<td><Control-Key-underscore> </td> 1619<td>Keyboard</td> 1620<td><<Undo>> </td> 1621<td>X-- </td> 1622<td>NSM</td> 1623</tr><tr> 1624<td><Meta-Key-w> </td> 1625<td>Keyboard</td> 1626<td><<Copy>> </td> 1627<td>X-- </td> 1628<td>NSM</td> 1629</tr><tr> 1630<td><Command-Key-c> </td> 1631<td>Keyboard</td> 1632<td><<Copy>> </td> 1633<td>--M </td> 1634<td> </td> 1635</tr><tr> 1636<td><Command-Key-v> </td> 1637<td>Keyboard</td> 1638<td><<Paste>> </td> 1639<td>--M </td> 1640<td> </td> 1641</tr><tr> 1642<td><Command-Key-x> </td> 1643<td>Keyboard</td> 1644<td><<Cut>> </td> 1645<td>--M </td> 1646<td> </td> 1647</tr><tr> 1648<td><Command-Key-y> </td> 1649<td>Keyboard</td> 1650<td><<Redo>> </td> 1651<td>--M </td> 1652<td> </td> 1653</tr><tr> 1654<td><Command-Key-z> </td> 1655<td>Keyboard</td> 1656<td><<Undo>> </td> 1657<td>--M </td> 1658<td> </td> 1659</tr><tr> 1660<td><Clear> </td> 1661<td>Keyboard</td> 1662<td><<Clear>> </td> 1663<td>--M </td> 1664<td> </td> 1665</tr><tr> 1666<td><Key-F2> </td> 1667<td>Keyboard</td> 1668<td><<Cut>> </td> 1669<td>--M </td> 1670<td> </td> 1671</tr><tr> 1672<td><Key-F3> </td> 1673<td>Keyboard</td> 1674<td><<Copy>> </td> 1675<td>--M </td> 1676<td> </td> 1677</tr><tr> 1678<td><Key-F4> </td> 1679<td>Keyboard</td> 1680<td><<Paste>> </td> 1681<td>--M </td> 1682<td> </td> 1683</tr><tr> 1684<td><Key-F16> </td> 1685<td>Keyboard</td> 1686<td><<Copy>> </td> 1687<td>X-- </td> 1688<td> </td> 1689</tr><tr> 1690<td><Key-F18> </td> 1691<td>Keyboard</td> 1692<td><<Paste>> </td> 1693<td>X-- </td> 1694<td> </td> 1695</tr><tr> 1696<td><Key-F20> </td> 1697<td>Keyboard</td> 1698<td><<Cut>> </td> 1699<td>X-- </td> 1700<td> </td> 1701</tr> 1702</tbody></table> 1703 1704 1705<p><strong>Table 3: Keyboard Modifiers (PC)</strong> 1706</p> 1707 1708 1709<p>A standard PC keyboard does not have Select or Clear keys; nor does 1710it have Meta, Option or Command modifier keys. Its modifier keys are: 1711</p> 1712 1713 1714<p><em>File:</em> these names are not defined by a Tcl script file 1715</p> 1716 1717<table border="1" cellpadding="2" cellspacing="0"> 1718<tbody><tr> 1719<td><strong>Key</strong></td> 1720<td><strong>Notes</strong></td> 1721</tr><tr> 1722<td>Shift_L</td> 1723<td> </td> 1724</tr><tr> 1725<td>Shift_R</td> 1726<td> </td> 1727</tr><tr> 1728<td>Control_L</td> 1729<td> </td> 1730</tr><tr> 1731<td>Control_R</td> 1732<td> </td> 1733</tr><tr> 1734<td>Super_L</td> 1735<td>(The left "Windows" key)</td> 1736</tr><tr> 1737<td>Super_R</td> 1738<td>(The right "Windows" key)</td> 1739</tr><tr> 1740<td>Alt_L</td> 1741<td> </td> 1742</tr><tr> 1743<td>ISO_Level3_Shift</td> 1744<td>(The "Right Alt" key)</td> 1745</tr> 1746</tbody></table> 1747 1748 1749<p>The "Windows Menu" key <Menu> is not a modifier key. 1750</p> 1751 1752 1753<p><strong>Table 4: Actions that modify the text contents of the widget</strong> 1754</p> 1755 1756 1757<p><em>File: lib/tk8.5/text.tcl</em> - data extracted from Table 1. 1758</p> 1759 1760<table border="1" cellpadding="2" cellspacing="0"> 1761<tbody><tr> 1762<td><strong>Binding</strong></td> 1763<td><strong>Mapped To</strong></td> 1764</tr><tr> 1765<td><Key></td> 1766<td> </td> 1767</tr><tr> 1768<td><Key-BackSpace></td> 1769<td> </td> 1770</tr><tr> 1771<td><Key-Delete></td> 1772<td> </td> 1773</tr><tr> 1774<td><Key-Return></td> 1775<td> </td> 1776</tr><tr> 1777<td><Key-Tab></td> 1778<td> </td> 1779</tr><tr> 1780<td><Key-Insert></td> 1781<td> </td> 1782</tr><tr> 1783<td><Meta-Key-d></td> 1784<td> </td> 1785</tr><tr> 1786<td><Meta-Key-BackSpace></td> 1787<td> </td> 1788</tr><tr> 1789<td><Meta-Key-Delete></td> 1790<td> </td> 1791</tr><tr> 1792<td><Control-Key-d></td> 1793<td> </td> 1794</tr><tr> 1795<td><Control-Key-h></td> 1796<td> </td> 1797</tr><tr> 1798<td><Control-Key-i></td> 1799<td> </td> 1800</tr><tr> 1801<td><Control-Key-k></td> 1802<td> </td> 1803</tr><tr> 1804<td><Control-Key-o></td> 1805<td> </td> 1806</tr><tr> 1807<td><Control-Key-t></td> 1808<td> </td> 1809</tr><tr> 1810<td><<Undo>></td> 1811<td>windowing-system-dependent: e.g. in X11 <Control-Key-z> (and others)</td> 1812</tr><tr> 1813<td><<Redo>></td> 1814<td>windowing-system-dependent: e.g. in X11 <Control-Key-Z></td> 1815</tr><tr> 1816<td><<Cut>></td> 1817<td>windowing-system-dependent: e.g. in X11 <Control-Key-x> (and others)</td> 1818</tr><tr> 1819<td><<Paste>></td> 1820<td>windowing-system-dependent: e.g. in X11 <Control-Key-v> (and others)</td> 1821</tr><tr> 1822<td><<Clear>></td> 1823<td>windowing-system-dependent: Aqua only, <Clear> key</td> 1824</tr><tr> 1825<td><<PasteSelection>></td> 1826<td><ButtonRelease-2></td> 1827</tr> 1828</tbody></table> 1829 1830<h4>Bindings in the "all" Binding Tag</h4> 1831 1832<p><strong>Table 5: List of Bindings</strong> 1833</p> 1834 1835 1836<p>The "all" Binding Tag has 5 bindings (Table 5). Further real events 1837are mapped to a "virtual event" that is bound in the "all" binding tag 1838(Table 6). 1839</p> 1840 1841 1842<p><em>Files: lib/tk8.5/focus.tcl, lib/tk8.5/menu.tcl, lib/tk8.5/tk.tcl</em> 1843</p> 1844 1845<table border="1" cellpadding="2" cellspacing="0"> 1846<tbody><tr> 1847<td><strong>Event</strong> </td> 1848<td><strong>Type</strong></td> 1849<td><strong>Description</strong></td> 1850<td><strong>File</strong></td> 1851</tr><tr> 1852<td><<PrevWindow>> </td> 1853<td>keyboard</td> 1854<td>switching focus between widgets</td> 1855<td>lib/tk8.5/tk.tcl</td> 1856</tr><tr> 1857<td><Key-Tab> </td> 1858<td>keyboard</td> 1859<td>switching focus between widgets</td> 1860<td>lib/tk8.5/tk.tcl</td> 1861</tr><tr> 1862<td><Key-F10> </td> 1863<td>keyboard</td> 1864<td>keyboard navigation of menus</td> 1865<td>lib/tk8.5/menu.tcl</td> 1866</tr><tr> 1867<td><Alt-Key> </td> 1868<td>keyboard</td> 1869<td>keyboard navigation of menus</td> 1870<td>lib/tk8.5/menu.tcl</td> 1871</tr><tr> 1872<td><Enter> </td> 1873<td>mouse </td> 1874<td>focus follows mouse (optional, not the default)</td> 1875<td>lib/tk8.5/focus.tcl</td> 1876</tr> 1877</tbody></table> 1878 1879 1880<p><strong>Table 6: Real and Virtual Events</strong> 1881</p> 1882 1883 1884<p>Specifically, the Table shows mappings of <Real Events> to 1885<<Virtual Events>> that are bound in the "all" binding tag. 1886</p> 1887 1888 1889<p><em>File: lib/tk8.5/tk.tcl</em> 1890</p> 1891 1892<table border="1" cellpadding="2" cellspacing="0"> 1893<tbody><tr> 1894<td><strong>Real Event</strong> </td> 1895<td><strong>Type</strong></td> 1896<td><strong>Virtual Event</strong></td> 1897<td><strong>Systems</strong></td> 1898</tr><tr> 1899<td><Key-ISO_Left_Tab></td> 1900<td>Keyboard</td> 1901<td><<PrevWindow>></td> 1902<td>X11 (XFree86 or X.org) on PC</td> 1903</tr><tr> 1904<td><Key-hpBackTab></td> 1905<td>Keyboard</td> 1906<td><<PrevWindow>></td> 1907<td>some HP systems</td> 1908</tr><tr> 1909<td><Shift-Key-Tab></td> 1910<td>Keyboard</td> 1911<td><<PrevWindow>></td> 1912<td>all</td> 1913</tr> 1914</tbody></table> 1915 1916 1917<p>Some systems define a goofy (as in, not <Shift-Tab>) keysym 1918that is returned when the user presses <Shift-Tab>. These keysyms 1919are added to the <<PrevWindow>> event. For the first two, <em>catch</em> is used in case the keysym isn't recognized. 1920</p> 1921 1922 1923 1924</div> 1925 1926</div> 1927</td> 1928 1929<td valign="top" width="50"> </td> 1930 1931</tr> 1932</tbody></table> 1933</body></html>