From 61e6217663fa1c81d89b9a996faec2a3012878c8 Mon Sep 17 00:00:00 2001
From: Morten Rand-Hendriksen <morten@pinkandyellow.com>
Date: Thu, 15 Sep 2016 18:04:30 -0700
Subject: [PATCH] Add keyboard shortcuts (when available) to tooltips in editor
toolbar.
---
wp-includes/class-wp-editor.php | 42 ++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php
index 6e6fecc..bd24298 100644
|
a
|
b
|
final class _WP_Editors {
|
| 833 | 833 | /* translators: block tags */ |
| 834 | 834 | 'Blocks' => _x( 'Blocks', 'TinyMCE' ), |
| 835 | 835 | 'Paragraph' => __( 'Paragraph' ), |
| 836 | | 'Blockquote' => __( 'Blockquote' ), |
| | 836 | 'Blockquote' => __( 'Blockquote (> in editor)' ), |
| 837 | 837 | 'Div' => _x( 'Div', 'HTML tag' ), |
| 838 | 838 | 'Pre' => _x( 'Pre', 'HTML tag' ), |
| 839 | 839 | 'Preformatted' => _x( 'Preformatted', 'HTML tag' ), |
| 840 | 840 | 'Address' => _x( 'Address', 'HTML tag' ), |
| 841 | 841 | |
| 842 | 842 | 'Inline' => _x( 'Inline', 'HTML elements' ), |
| 843 | | 'Underline' => __( 'Underline' ), |
| 844 | | 'Strikethrough' => __( 'Strikethrough' ), |
| | 843 | 'Underline' => __( 'Underline (Ctrl + u)' ), |
| | 844 | 'Strikethrough' => __( 'Strikethrough (Alt + Shift + d)' ), |
| 845 | 845 | 'Subscript' => __( 'Subscript' ), |
| 846 | 846 | 'Superscript' => __( 'Superscript' ), |
| 847 | 847 | 'Clear formatting' => __( 'Clear formatting' ), |
| 848 | | 'Bold' => __( 'Bold' ), |
| 849 | | 'Italic' => __( 'Italic' ), |
| 850 | | 'Code' => __( 'Code' ), |
| | 848 | 'Bold' => __( 'Bold (Ctrl + b)' ), |
| | 849 | 'Italic' => __( 'Italic (Ctrl + i)' ), |
| | 850 | 'Code' => __( 'Code (Alt + Shift + x)' ), |
| 851 | 851 | 'Source code' => __( 'Source code' ), |
| 852 | 852 | 'Font Family' => __( 'Font Family' ), |
| 853 | 853 | 'Font Sizes' => __( 'Font Sizes' ), |
| 854 | 854 | |
| 855 | | 'Align center' => __( 'Align center' ), |
| 856 | | 'Align right' => __( 'Align right' ), |
| 857 | | 'Align left' => __( 'Align left' ), |
| 858 | | 'Justify' => __( 'Justify' ), |
| | 855 | 'Align center' => __( 'Align center (Alt + Shift + c)' ), |
| | 856 | 'Align right' => __( 'Align right (Alt + Shift + r)' ), |
| | 857 | 'Align left' => __( 'Align left (Alt + Shift + l)' ), |
| | 858 | 'Justify' => __( 'Justify (Alt + Shift + j)' ), |
| 859 | 859 | 'Increase indent' => __( 'Increase indent' ), |
| 860 | 860 | 'Decrease indent' => __( 'Decrease indent' ), |
| 861 | 861 | |
| … |
… |
final class _WP_Editors {
|
| 863 | 863 | 'Copy' => __( 'Copy' ), |
| 864 | 864 | 'Paste' => __( 'Paste' ), |
| 865 | 865 | 'Select all' => __( 'Select all' ), |
| 866 | | 'Undo' => __( 'Undo' ), |
| 867 | | 'Redo' => __( 'Redo' ), |
| | 866 | 'Undo' => __( 'Undo (Ctrl + z)' ), |
| | 867 | 'Redo' => __( 'Redo (Ctrl + y)' ), |
| 868 | 868 | |
| 869 | 869 | 'Ok' => __( 'OK' ), |
| 870 | 870 | 'Cancel' => __( 'Cancel' ), |
| 871 | 871 | 'Close' => __( 'Close' ), |
| 872 | 872 | 'Visual aids' => __( 'Visual aids' ), |
| 873 | 873 | |
| 874 | | 'Bullet list' => __( 'Bulleted list' ), |
| 875 | | 'Numbered list' => __( 'Numbered list' ), |
| | 874 | 'Bullet list' => __( 'Bulleted list (Alt + Shift + u)' ), |
| | 875 | 'Numbered list' => __( 'Numbered list (Alt + Shift + o)' ), |
| 876 | 876 | 'Square' => _x( 'Square', 'list style' ), |
| 877 | 877 | 'Default' => _x( 'Default', 'list style' ), |
| 878 | 878 | 'Circle' => _x( 'Circle', 'list style' ), |
| … |
… |
final class _WP_Editors {
|
| 924 | 924 | 'Emoticons' => __( 'Emoticons' ), |
| 925 | 925 | 'Nonbreaking space' => __( 'Nonbreaking space' ), |
| 926 | 926 | 'Page break' => __( 'Page break' ), |
| 927 | | 'Paste as text' => __( 'Paste as text' ), |
| | 927 | 'Paste as text' => __( 'Paste as text (Ctrl + v)' ), |
| 928 | 928 | 'Preview' => __( 'Preview' ), |
| 929 | 929 | 'Print' => __( 'Print' ), |
| 930 | 930 | 'Save' => __( 'Save' ), |
| 931 | 931 | 'Fullscreen' => __( 'Fullscreen' ), |
| 932 | | 'Horizontal line' => __( 'Horizontal line' ), |
| | 932 | 'Horizontal line' => __( 'Horizontal line (--- in editor)' ), |
| 933 | 933 | 'Horizontal space' => __( 'Horizontal space' ), |
| 934 | 934 | 'Restore last draft' => __( 'Restore last draft' ), |
| 935 | | 'Insert/edit link' => __( 'Insert/edit link' ), |
| 936 | | 'Remove link' => __( 'Remove link' ), |
| | 935 | 'Insert/edit link' => __( 'Insert/edit link (Ctrl + k)' ), |
| | 936 | 'Remove link' => __( 'Remove link (Alt + Shift + s)' ), |
| 937 | 937 | |
| 938 | 938 | 'Color' => __( 'Color' ), |
| 939 | 939 | 'Custom color' => __( 'Custom color' ), |
| … |
… |
final class _WP_Editors {
|
| 952 | 952 | 'Find' => _x( 'Find', 'find/replace' ), |
| 953 | 953 | 'Replace all' => _x( 'Replace all', 'find/replace' ), |
| 954 | 954 | 'Match case' => __( 'Match case' ), |
| 955 | | 'Spellcheck' => __( 'Check Spelling' ), |
| | 955 | 'Spellcheck' => __( 'Check Spelling (Alt + Shift + n)' ), |
| 956 | 956 | 'Finish' => _x( 'Finish', 'spellcheck' ), |
| 957 | 957 | 'Ignore all' => _x( 'Ignore all', 'spellcheck' ), |
| 958 | 958 | 'Ignore' => _x( 'Ignore', 'spellcheck' ), |
| … |
… |
final class _WP_Editors {
|
| 1038 | 1038 | |
| 1039 | 1039 | // WordPress strings |
| 1040 | 1040 | 'Toolbar Toggle' => __( 'Toolbar Toggle' ), |
| 1041 | | 'Insert Read More tag' => __( 'Insert Read More tag' ), |
| | 1041 | 'Insert Read More tag' => __( 'Insert Read More tag (Alt + Shift + t)' ), |
| 1042 | 1042 | 'Insert Page Break tag' => __( 'Insert Page Break tag' ), |
| 1043 | 1043 | 'Read more...' => __( 'Read more...' ), // Title on the placeholder inside the editor (no ellipsis) |
| 1044 | | 'Distraction-free writing mode' => __( 'Distraction-free writing mode' ), |
| | 1044 | 'Distraction-free writing mode' => __( 'Distraction-free writing mode (Alt + Shift + w)' ), |
| 1045 | 1045 | 'No alignment' => __( 'No alignment' ), // Tooltip for the 'alignnone' button in the image toolbar |
| 1046 | 1046 | 'Remove' => __( 'Remove' ), // Tooltip for the 'remove' button in the image toolbar |
| 1047 | 1047 | 'Edit ' => __( 'Edit' ), // Tooltip for the 'edit' button in the image toolbar |