mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: locale JSON syntax; prevent focus grab on follow-up; platform-aware key hints
This commit is contained in:
parent
3e42364fa4
commit
4869406dbb
4 changed files with 12 additions and 5 deletions
|
|
@ -789,7 +789,8 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
case "action":
|
||||
switch (message.action!) {
|
||||
case "didBecomeVisible":
|
||||
if (!isHidden && !sendingDisabled && !enableButtons) {
|
||||
// Do not grab focus during follow-up questions
|
||||
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
|
||||
textAreaRef.current?.focus()
|
||||
}
|
||||
break
|
||||
|
|
@ -858,6 +859,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
handleSecondaryButtonClick,
|
||||
setCheckpointWarning,
|
||||
playSound,
|
||||
clineAsk,
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -976,12 +978,13 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
|
||||
useDebounceEffect(
|
||||
() => {
|
||||
if (!isHidden && !sendingDisabled && !enableButtons) {
|
||||
// Do not grab focus during follow-up questions
|
||||
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
|
||||
textAreaRef.current?.focus()
|
||||
}
|
||||
},
|
||||
50,
|
||||
[isHidden, sendingDisabled, enableButtons],
|
||||
[isHidden, sendingDisabled, enableButtons, clineAsk],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
1
webview-ui/src/i18n/locales/de/settings.json
generated
1
webview-ui/src/i18n/locales/de/settings.json
generated
|
|
@ -959,5 +959,6 @@
|
|||
"requireCtrlEnterToSend": {
|
||||
"label": "Erfordert {primaryMod}+Enter zum Senden von Nachrichten",
|
||||
"description": "Wenn aktiviert, musst du {primaryMod}+Enter drücken, um Nachrichten zu senden, anstatt nur Enter."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
webview-ui/src/i18n/locales/fr/settings.json
generated
3
webview-ui/src/i18n/locales/fr/settings.json
generated
|
|
@ -954,8 +954,11 @@
|
|||
"ui": {
|
||||
"collapseThinking": {
|
||||
"label": "Réduire les messages de réflexion par défaut",
|
||||
"description": "Lorsque cette option est activée, les blocs de réflexion seront réduits par défaut jusqu'à ce que vous interagissiez avec eux"
|
||||
},
|
||||
"requireCtrlEnterToSend": {
|
||||
"label": "Requiert {primaryMod}+Entrée pour envoyer des messages",
|
||||
"description": "Lorsqu'activé, vous devez appuyer sur {primaryMod}+Entrée pour envoyer des messages au lieu de simplement Entrée"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
webview-ui/src/i18n/locales/it/settings.json
generated
4
webview-ui/src/i18n/locales/it/settings.json
generated
|
|
@ -954,11 +954,11 @@
|
|||
},
|
||||
"ui": {
|
||||
"collapseThinking": {
|
||||
"label": "Comprimi i messaggi di pensiero per impostazione predefinita",
|
||||
"label": "Comprimi i messaggi di pensiero per impostazione predefinita"
|
||||
},
|
||||
"requireCtrlEnterToSend": {
|
||||
"label": "Richiedi {primaryMod}+Invio per inviare messaggi",
|
||||
"description": "Quando abilitato, devi premere {primaryMod}+Invio per inviare messaggi invece di solo Invio"
|
||||
"description": "Quando abilitato, devi premere Ctrl+Invio per inviare messaggi invece di solo Invio"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue