We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9140cc5 commit 8e77a98Copy full SHA for 8e77a98
src/core/components/settings/new-panel/manual-classes.tsx
@@ -165,6 +165,17 @@ export function ManualClasses() {
165
e.preventDefault();
166
addNewClasses();
167
}
168
+ if (e.key === "Tab" && suggestions.length > 0) {
169
+ e.preventDefault();
170
+ // Simulate ArrowDown to highlight
171
+ const downEvent = new KeyboardEvent("keydown", {
172
+ key: "ArrowDown",
173
+ code: "ArrowDown",
174
+ keyCode: 40,
175
+ bubbles: true,
176
+ });
177
+ e.target.dispatchEvent(downEvent);
178
+ }
179
},
180
onChange: (_e: any, { newValue }: any) => setNewCls(newValue),
181
className: "w-full rounded-md text-xs px-2 hover:outline-0 bg-background border-border py-1",
0 commit comments