mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-03 05:04:51 +08:00
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:
commit
4e5038fd06
@ -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();
|
||||
|
@ -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 + ←'] },
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user