From 7e8f379dfbd4d70050ce301a42a38ba9c1f052f4 Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Thu, 1 May 2025 10:34:07 -0700 Subject: Save settings to ~/.gemini/settings.json and optionally /your/workspace/.gemini/settings.json (#237) --- packages/cli/src/ui/components/shared/RadioButtonSelect.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/cli/src/ui/components/shared/RadioButtonSelect.tsx') diff --git a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx index bda56014..3db8b678 100644 --- a/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx +++ b/packages/cli/src/ui/components/shared/RadioButtonSelect.tsx @@ -37,6 +37,9 @@ export interface RadioButtonSelectProps { /** Function called when an item is highlighted. Receives the `value` of the selected item. */ onHighlight?: (value: T) => void; + + /** Whether this select input is currently focused and should respond to input. */ + isFocused?: boolean; } /** @@ -77,6 +80,7 @@ export function RadioButtonSelect({ initialIndex, onSelect, onHighlight, + isFocused, }: RadioButtonSelectProps): React.JSX.Element { const handleSelect = (item: RadioSelectItem) => { onSelect(item.value); @@ -95,6 +99,7 @@ export function RadioButtonSelect({ initialIndex={initialIndex} onSelect={handleSelect} onHighlight={handleHighlight} + isFocused={isFocused} /> ); } -- cgit v1.2.3