mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 20:20:57 +00:00
Merge pull request #1736 from QwenLM/fix/windows-tab-autocomplete-conflict-1728
fix(cli): prevent Tab key from cycling approval mode when autocomplete is active on Windows
This commit is contained in:
commit
7f49ddede1
5 changed files with 98 additions and 3 deletions
|
|
@ -37,9 +37,14 @@ export const Composer = () => {
|
|||
|
||||
// State for suggestions visibility
|
||||
const [showSuggestions, setShowSuggestions] = useState(false);
|
||||
const handleSuggestionsVisibilityChange = useCallback((visible: boolean) => {
|
||||
setShowSuggestions(visible);
|
||||
}, []);
|
||||
const handleSuggestionsVisibilityChange = useCallback(
|
||||
(visible: boolean) => {
|
||||
setShowSuggestions(visible);
|
||||
// Also notify AppContainer for Tab key handling
|
||||
uiActions.onSuggestionsVisibilityChange(visible);
|
||||
},
|
||||
[uiActions],
|
||||
);
|
||||
|
||||
return (
|
||||
<Box flexDirection="column" marginTop={1}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue