From 1c0257d340aabd4383e7333ec0ee7b7191d0119c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 31 Jan 2018 22:21:53 +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. See #42586. git-svn-id: https://develop.svn.wordpress.org/trunk@42625 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index e8ce171190..8bcd57f56c 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -3208,6 +3208,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(),