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

git-svn-id: https://develop.svn.wordpress.org/trunk@29301 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2014-07-25 15:56:57 +00:00
parent 59cec2e2ff
commit 357d96c367
1 changed files with 4 additions and 0 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 ]();