TinyMCE, inline link: when searching, do not empty the URL input field when using the arrow keys to highlight items.

Props afercia.
See #33301.

git-svn-id: https://develop.svn.wordpress.org/trunk@36974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-03-12 19:41:00 +00:00
parent 7552b192a8
commit 2a30146900
2 changed files with 2 additions and 0 deletions

View File

@ -348,6 +348,7 @@
},
focus: function( event, ui ) {
$input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID );
event.preventDefault();
},
select: function( event, ui ) {
$input.val( ui.item.permalink );

View File

@ -76,6 +76,7 @@ var wpLink;
},
focus: function( event, ui ) {
$input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID );
event.preventDefault();
},
select: function( event, ui ) {
$input.val( ui.item.permalink );