Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): F6 moves between workspace areas, and the sidebar is keyboard navigable #25877

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 15 commits intomain fromrefs/pull/25877/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 45 changed files with 43 additions and 2 deletions (loading 42).

x
0 of 45 viewed, 45 left
10 additions and 1 deletionapps/desktop/src/preview/Manager.tsModified
View file
@@ -1505,7 +1505,16 @@
if (forwarded && host) {
event.preventDefault();
- if (!input.isAutoRepeat) host.send(MENU_ACTION_CHANNEL, forwarded.command);
+ if (!input.isAutoRepeat) {
+ if (
+ forwarded.command === "workspace.focusNext" ||
+ forwarded.command === "workspace.focusPrevious"
+ ) {
+ // DOM focus in the renderer cannot by itself release the guest's native keyboard focus.
+ host.focus();
+ }
+ host.send(MENU_ACTION_CHANNEL, forwarded.command);
+ }
return;
if (isPreviewRefreshShortcut(input)) {
31 additions and 0 deletionsapps/web/src/components/chat/QueuedRunsControl.browser.test.tsxModified
View file
@@ -40,6 +40,7 @@
resources.map((resource) => `https://assets.test/${resource.attachmentId}`)) as never,
}));
​
+import "~/index.css";
import { render as renderUi } from "../../../test/render";
import { QueuedRunsControl } from "./QueuedRunsControl";
​