IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 113 | 113 | var keystroke = domEvt.getKeystroke(), |
| 114 | 114 | rtl = editor.lang.dir == 'rtl'; |
| 115 | 115 | |
| 116 | | // Initial focus is on table. |
| 117 | | // always having the first cell highlighted on first arrow key-press. |
| 118 | | if ( element.is( 'table' ) && ( keystroke < 41 && keystroke > 36 ) ) |
| 119 | | { |
| 120 | | element = element.$.rows[ 0 ].cells[ 0 ]; |
| 121 | | element.focus(); |
| 122 | | domEvt.preventDefault(); |
| 123 | | return; |
| 124 | | } |
| 125 | | |
| 126 | 116 | switch ( keystroke ) |
| 127 | 117 | { |
| 128 | 118 | // UP-ARROW |
| … |
… |
|
| 214 | 204 | |
| 215 | 205 | table.on( 'mouseover', updateHighlight ); |
| 216 | 206 | table.on( 'mouseout', removeHighlight ); |
| 217 | | table.on( 'keydown', onKeyStrokes ); |
| 218 | 207 | |
| 219 | 208 | // Create the base colors array. |
| 220 | 209 | var aColors = [ '00', '33', '66', '99', 'cc', 'ff' ]; |
| … |
… |
|
| 329 | 318 | focus : function() |
| 330 | 319 | { |
| 331 | 320 | // Restore the previously focused cell, |
| 332 | | // otherwise put the initial focus on table. |
| 333 | | ( focused || this.getElement().getFirst() ).focus(); |
| | 321 | // otherwise put the initial focus on the first table cell. |
| | 322 | ( focused || this.getElement().getElementsByTag( 'td' ).getItem( 0 ) ).focus(); |
| 334 | 323 | } |
| 335 | 324 | }, |
| 336 | 325 | spacer, |