PluginProbe
Code Snippets / 3.0.0
Code Snippets v3.0.0
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / php / views / partials / editor-shortcuts.php

editor-shortcuts.php in Code Snippets 3.0.0, at php/views/partials/editor-shortcuts.php

52 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * HTML for the editor shortcuts tooltip.
4 *
5 * @package Code_Snippets
6 * @subpackage Views
7 */
8
9 namespace Code_Snippets;
10
11 ?>
12
13 <div class="snippet-editor-help">
14
15 <div class="editor-help-tooltip cm-s-<?php
16 echo esc_attr( Settings\get_setting( 'editor', 'theme' ) ); ?>"><?php
17 echo esc_html_x( '?', 'help tooltip', 'code-snippets' ); ?></div>
18
19 <div class="editor-help-text">
20 <table>
21 <tr>
22 <td><?php esc_html_e( 'Save changes', 'code-snippets' ); ?></td>
23 <td><?php $this->render_keyboard_shortcut( 'Cmd', 'S' ); ?></td>
24 </tr>
25 <tr>
26 <td><?php esc_html_e( 'Begin searching', 'code-snippets' ); ?></td>
27 <td><?php $this->render_keyboard_shortcut( 'Cmd', 'F' ); ?></td>
28 </tr>
29 <tr>
30 <td><?php esc_html_e( 'Find next', 'code-snippets' ); ?></td>
31 <td><?php $this->render_keyboard_shortcut( 'Cmd', 'G' ); ?></td>
32 </tr>
33 <tr>
34 <td><?php esc_html_e( 'Find previous', 'code-snippets' ); ?></td>
35 <td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd' ), 'G' ); ?></td>
36 </tr>
37 <tr>
38 <td><?php esc_html_e( 'Replace', 'code-snippets' ); ?></td>
39 <td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd' ), 'F' ); ?></td>
40 </tr>
41 <tr>
42 <td><?php esc_html_e( 'Replace all', 'code-snippets' ); ?></td>
43 <td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd', 'Option' ), 'R' ); ?></td>
44 </tr>
45 <tr>
46 <td><?php esc_html_e( 'Persistent search', 'code-snippets' ); ?></td>
47 <td><?php $this->render_keyboard_shortcut( 'Alt', 'F' ); ?></td>
48 </tr>
49 </table>
50 </div>
51 </div>
52