| Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
| — | — | @@ -424,6 +424,18 @@ |
| 425 | 425 | } |
| 426 | 426 | handleInsert(); |
| 427 | 427 | break; |
| | 428 | + |
| | 429 | + // a (select all) |
| | 430 | + case 65: |
| | 431 | + if ( e.ctrlKey ) { |
| | 432 | + this.model.select( new es.Range( |
| | 433 | + this.model.getDocument().getRelativeContentOffset( 0, 1 ), |
| | 434 | + this.model.getDocument().getRelativeContentOffset( |
| | 435 | + this.model.getDocument().getContentLength(), -1 |
| | 436 | + ) |
| | 437 | + ), true ); |
| | 438 | + break; |
| | 439 | + } |
| 428 | 440 | // Insert content (maybe) |
| 429 | 441 | default: |
| 430 | 442 | handleInsert(); |
| — | — | @@ -570,6 +582,7 @@ |
| 571 | 583 | val = this.$input.val(); |
| 572 | 584 | this.$input.val( '' ); |
| 573 | 585 | if ( val.length > 0 ) { |
| | 586 | + //debugger; |
| 574 | 587 | var tx; |
| 575 | 588 | if ( selection.from != selection.to ) { |
| 576 | 589 | tx = this.model.getDocument().prepareRemoval( selection ); |