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:
parent
6513808db0
commit
f3ede5702e
|
@ -348,6 +348,10 @@ var wpLink;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( inputs.url.is( ':focus' ) || inputs.title.is( ':focus' ) ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
fn = event.keyCode === key.UP ? 'prev' : 'next';
|
fn = event.keyCode === key.UP ? 'prev' : 'next';
|
||||||
clearInterval( wpLink.keyInterval );
|
clearInterval( wpLink.keyInterval );
|
||||||
wpLink[ fn ]();
|
wpLink[ fn ]();
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue