From 357d96c3677efce86451457bd89b5663e9168736 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Fri, 25 Jul 2014 15:56:57 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/wplink.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index 0334be1a78..052d7d544e 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -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 ]();