We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db0d325 commit 2e662c1Copy full SHA for 2e662c1
1 file changed
frontend/testing-view/src/features/keyBindings/components/KeyBindingsDialog.tsx
@@ -57,7 +57,14 @@ export const KeyBindingsDialog = ({
57
return (
58
<>
59
<Dialog open={open} onOpenChange={onOpenChange}>
60
- <DialogContent className="w-full min-w-[700px]">
+ <DialogContent
61
+ className="w-full min-w-[700px]"
62
+ // onOpenAutoFocus moves focus from the first item's remove button to the dialog itself
63
+ onOpenAutoFocus={(e) => {
64
+ e.preventDefault();
65
+ (e.currentTarget as HTMLElement).focus();
66
+ }}
67
+ >
68
<DialogHeader>
69
<DialogTitle>Key Bindings - {activeWorkspace?.name}</DialogTitle>
70
<DialogDescription>
0 commit comments