Merge pull request #3378 from jcharry/ui/change-addon-panel-keyboard-shortcut

Change addon panel keyboard shortcut to shift-meta-z
This commit is contained in:
Daniel Duan 2018-04-06 22:47:18 -04:00 committed by GitHub
commit 4e5038fd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ export default function handle(e) {
case keycode('F'):
e.preventDefault();
return features.FULLSCREEN;
case keycode('C'):
case keycode('Z'):
// backward-compatibility
case keycode('D'):
e.preventDefault();

View File

@ -43,7 +43,7 @@ export function getShortcuts(platform) {
{ name: 'Toggle Addon panel position', keys: ['⌘ ⇧ G', '⌃ ⇧ G'] },
{ name: 'Toggle Fullscreen Mode', keys: ['⌘ ⇧ F', '⌃ ⇧ F'] },
{ name: 'Toggle Stories Panel', keys: ['⌘ ⇧ X', '⌃ ⇧ X'] },
{ name: 'Toggle Addon panel', keys: ['⌘ ⇧ C', '⌃ ⇧ C'] },
{ name: 'Toggle Addon panel', keys: ['⌘ ⇧ Z', '⌃ ⇧ Z'] },
{ name: 'Next Story', keys: ['⌘ ⇧ →', '⌃ ⇧ →'] },
{ name: 'Previous Story', keys: ['⌘ ⇧ ←', '⌃ ⇧ ←'] },
];
@ -54,7 +54,7 @@ export function getShortcuts(platform) {
{ name: 'Toggle Addon panel position', keys: ['Ctrl + Shift + G'] },
{ name: 'Toggle Fullscreen Mode', keys: ['Ctrl + Shift + F'] },
{ name: 'Toggle Stories Panel', keys: ['Ctrl + Shift + X'] },
{ name: 'Toggle Addon panel', keys: ['Ctrl + Shift + C'] },
{ name: 'Toggle Addon panel', keys: ['Ctrl + Shift + Z'] },
{ name: 'Next Story', keys: ['Ctrl + Shift + →'] },
{ name: 'Previous Story', keys: ['Ctrl + Shift + ←'] },
];