TinyMCE shortcuts: revert to Alt + Shift + letter for WebKit and Ctrl + Alt + letter (Command + Option + letter) in Firefox, see #21197

git-svn-id: http://core.svn.wordpress.org/trunk@21359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2012-07-29 21:08:58 +00:00
parent 67d4a5f71a
commit 8dfdf4565a
2 changed files with 4 additions and 4 deletions

View File

@ -249,10 +249,10 @@
t._handleMoreBreak(ed, url);
// Add custom shortcuts
mod_key = 'alt';
mod_key = 'alt+shift';
if ( tinymce.isIE || tinymce.isOpera )
mod_key = 'shift+alt';
if ( tinymce.isGecko )
mod_key = 'ctrl+alt';
ed.addShortcut(mod_key + '+c', 'justifycenter_desc', 'JustifyCenter');
ed.addShortcut(mod_key + '+r', 'justifyright_desc', 'JustifyRight');

View File

@ -204,7 +204,7 @@ if ( tinymce.isMac )
<tr><th>6</th><td><?php _e('Heading 6') ?></td><th>9</th><td><?php _e('Address') ?></td></tr>
</table>
<p><?php _e('The following shortcuts use different access keys: Alt + letter in Firefox, Chrome and Safari, Alt + Shift + letter in Internet Explorer and Opera.') ?></p>
<p><?php _e('The following shortcuts use different access keys: Alt + Shift + letter in Chrome, Safari, Internet Explorer and Opera, and Ctrl + Alt + letter (Command + Option + letter on Macintosh) in Firefox.') ?></p>
<table class="keys">
<tr class="top"><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th><th class="key center"><?php _e('Letter') ?></th><th class="left"><?php _e('Action') ?></th></tr>
<tr><th>n</th><td><?php _e('Check Spelling') ?></td><th>l</th><td><?php _e('Align Left') ?></td></tr>