Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove preview shortcut #6010

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions editor/src/components/editor/global-shortcuts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ import {
TOGGLE_INSPECTOR_AND_NAVIGATOR_SHORTCUT,
TOGGLE_NAVIGATOR,
TOGGLE_LIVE_CANVAS_SHORTCUT,
TOGGLE_PREVIEW_SHORTCUT,
TOGGLE_INSPECTOR,
TOGGLE_SHADOW_SHORTCUT,
UNDO_CHANGES_SHORTCUT,
Expand Down Expand Up @@ -625,9 +624,6 @@ export function handleKeyDown(
}
return []
},
[TOGGLE_PREVIEW_SHORTCUT]: () => {
return [EditorActions.togglePanel('preview')]
},
[TOGGLE_LIVE_CANVAS_SHORTCUT]: () => {
return [EditorActions.toggleCanvasIsLive()]
},
Expand Down
2 changes: 0 additions & 2 deletions editor/src/components/editor/shortcut-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const WRAP_ELEMENT_PICKER_SHORTCUT = 'wrap-element-picker'
export const GROUP_ELEMENT_DEFAULT_SHORTCUT = 'group-element-default'
export const TOGGLE_HIDDEN_SHORTCUT = 'toggle-hidden'
export const INSERT_IMAGE_SHORTCUT = 'insert-image'
export const TOGGLE_PREVIEW_SHORTCUT = 'toggle-preview'
export const TOGGLE_LIVE_CANVAS_SHORTCUT = 'toggle-live-canvas'
export const START_RENAMING_SHORTCUT = 'start-renaming'
export const INSERT_RECTANGLE_SHORTCUT = 'insert-rectangle'
Expand Down Expand Up @@ -152,7 +151,6 @@ const shortcutDetailsWithDefaults: ShortcutDetails = {
[GROUP_ELEMENT_DEFAULT_SHORTCUT]: shortcut('Group elements with a div.', key('g', 'cmd')),
[TOGGLE_HIDDEN_SHORTCUT]: shortcut('Toggle element as hidden.', key('h', ['cmd', 'shift'])),
[INSERT_IMAGE_SHORTCUT]: shortcut('Insert an image.', key('i', [])),
[TOGGLE_PREVIEW_SHORTCUT]: shortcut('Toggle the preview panel.', key('p', 'cmd')),
[TOGGLE_LIVE_CANVAS_SHORTCUT]: shortcut(
'Toggle the canvas between live and edit mode.',
key('p', ['cmd', 'shift']),
Expand Down
Loading