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
This commit is contained in:
Sergey Biryukov 2018-01-31 22:21:53 +00:00
parent 37e81feb9f
commit 1c0257d340
1 changed files with 2 additions and 0 deletions

View File

@ -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(),