From 9201cc33cc838e9ca94dc65789d530a23a86e8f4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 31 Jan 2018 22:28:43 +0000 Subject: [PATCH] Code Editor: Add Ctrl/Cmd+F as aliases for persistent search for more intuitive behaviour. Keep Alt+F as well for users who already expect that. Props Desertsnowman. Merges [42625] to the 4.9 branch. See #42586. Built from https://develop.svn.wordpress.org/branches/4.9@42626 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42455 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 318fbbc272..70b1a785fa 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -3155,6 +3155,8 @@ function wp_enqueue_code_editor( $args ) { 'Ctrl-/' => 'toggleComment', 'Cmd-/' => 'toggleComment', 'Alt-F' => 'findPersistent', + 'Ctrl-F' => 'findPersistent', + 'Cmd-F' => 'findPersistent', ), 'direction' => 'ltr', // Code is shown in LTR even in RTL languages. 'gutters' => array(), diff --git a/wp-includes/version.php b/wp-includes/version.php index 6cd4481272..c0faca27d9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.3-beta1-42623'; +$wp_version = '4.9.3-beta1-42626'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.