Ticket #28595: 28595.6.patch
File 28595.6.patch, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wpview/plugin.js
465 465 return; 466 466 } 467 467 468 if ( keyCode === VK.LEFT || keyCode === VK.UP) {468 if ( keyCode === VK.LEFT ) { 469 469 setViewCursor( true, view ); 470 470 deselect(); 471 } else if ( keyCode === VK.RIGHT || keyCode === VK.DOWN ) { 471 } else if ( keyCode === VK.UP ) { 472 if ( view.previousSibling ) { 473 if ( getView( view.previousSibling ) ) { 474 setViewCursor( true, view.previousSibling ); 475 } else { 476 selection.select( view.previousSibling, true ); 477 selection.collapse(); 478 } 479 } else { 480 handleEnter( view, true ); 481 } 482 deselect(); 483 } else if ( keyCode === VK.RIGHT ) { 472 484 setViewCursor( false, view ); 473 485 deselect(); 486 } else if ( keyCode === VK.DOWN ) { 487 if ( view.nextSibling ) { 488 if ( getView( view.nextSibling ) ) { 489 setViewCursor( false, view.nextSibling ); 490 } else { 491 selection.setCursorLocation( view.nextSibling, 0 ); 492 } 493 } else { 494 handleEnter( view ); 495 } 496 deselect(); 474 497 } else if ( keyCode === VK.ENTER ) { 475 498 handleEnter( view ); 476 499 } else if ( keyCode === VK.DELETE || keyCode === VK.BACKSPACE ) {