Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): the right panel works like a browser from the keyboard #15035

Closedbmdavis419(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromfeat/right-panel-keybindingsopened View on GitHub

Showing 34 changed files with 58 additions and 0 deletions (loading 31).

x
0 of 34 viewed, 34 left
14 additions and 0 deletionsapps/desktop/src/ipc/methods/preview.tsModified
View file
@@ -16,6 +16,7 @@
DesktopPreviewScreenshotArtifactSchema,
DesktopPreviewSetAudioMutedInputSchema,
DesktopPreviewSetColorSchemeInputSchema,
+ DesktopPreviewSetForwardedShortcutsInputSchema,
BrowserImportResult,
BrowserImportSource,
DesktopPreviewClearDataInputSchema,
@@ -175,6 +176,18 @@
yield* manager.setAudioMuted(tabId, audioMuted);
}),
});
+export const setForwardedShortcuts = DesktopIpc.makeIpcMethod({
+ channel: IpcChannels.PREVIEW_SET_FORWARDED_SHORTCUTS_CHANNEL,
+ payload: DesktopPreviewSetForwardedShortcutsInputSchema,
+ result: Schema.Void,
+ handler: Effect.fn("desktop.ipc.preview.setForwardedShortcuts")(function* ({
+ shortcuts,
+ tabIds,
+ }) {
+ const manager = yield* PreviewManager.PreviewManager;
+ yield* manager.setForwardedShortcuts(shortcuts, tabIds);
+ }),
+});
export const openDevTools = tabMethod(
IpcChannels.PREVIEW_OPEN_DEVTOOLS_CHANNEL,
"desktop.ipc.preview.openDevTools",
@@ -496,6 +509,7 @@