Skip to content
Source
Sign inSign up
pingdotgg/t3code

Add right panel close controls #4148

Closedcaezium(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/4148/headopened View on GitHub

Showing 35 changed files with 14 additions and 0 deletions (loading 33).

x
0 of 35 viewed, 35 left
12 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -12,6 +12,7 @@
DesktopPreviewRecordingArtifactSchema,
DesktopPreviewRecordingSaveInputSchema,
DesktopPreviewRegisterWebviewInputSchema,
+ DesktopPreviewRightPanelCloseShortcutsInputSchema,
DesktopPreviewScreenshotArtifactSchema,
DesktopPreviewSetColorSchemeInputSchema,
DesktopPreviewTabInputSchema,
@@ -76,6 +77,16 @@
}),
});
​
+export const setRightPanelCloseShortcuts = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_SET_RIGHT_PANEL_CLOSE_SHORTCUTS_CHANNEL,
+ payload: DesktopPreviewRightPanelCloseShortcutsInputSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.setRightPanelCloseShortcuts")(function* ({ shortcuts }) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.setRightPanelCloseShortcuts(shortcuts);
+ }),
+});
+​
export const navigate = DesktopIpc.makeIpcMethod({
channel: IpcChannels.PREVIEW_NAVIGATE_CHANNEL,
payload: DesktopPreviewNavigateInputSchema,
@@ -348,6 +359,7 @@
createTab,
closeTab,