Don't interfere with browser-based autocomplete in the link modal. props SergeyBiryukov. fixes #28685.

Built from https://develop.svn.wordpress.org/trunk@29301


git-svn-id: http://core.svn.wordpress.org/trunk@29083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2014-07-25 15:57:16 +00:00
parent 6513808db0
commit f3ede5702e
2 changed files with 5 additions and 1 deletions

View File

@ -348,6 +348,10 @@ var wpLink;
return;
}
if ( inputs.url.is( ':focus' ) || inputs.title.is( ':focus' ) ) {
return;
}
fn = event.keyCode === key.UP ? 'prev' : 'next';
clearInterval( wpLink.keyInterval );
wpLink[ fn ]();

File diff suppressed because one or more lines are too long