From 0ef495da6a0fbc17fbc927eab3c4adca5876e516 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 31 Jul 2014 23:27:14 +0000 Subject: [PATCH] wpLink: - Fix adding a link on pressing Enter. - Don't auto-focus the URL field after selecting a local link. - Don't auto-focus the URL field when opening on touch devices. Toggle focus/blur on it to close the onscreen keyboard so the modal is positioned properly. See #28897. git-svn-id: https://develop.svn.wordpress.org/trunk@29333 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 2 +- src/wp-includes/js/wplink.js | 36 ++++++++++++++++++----------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index b328bd19d9..9659336fe9 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -1376,7 +1376,7 @@ final class _WP_Editors {