mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
chore: scope ctrl-enter toggle changes
This commit is contained in:
parent
c9dd8a8841
commit
18c1f69d5e
2 changed files with 5 additions and 7 deletions
|
|
@ -789,8 +789,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
case "action":
|
||||
switch (message.action!) {
|
||||
case "didBecomeVisible":
|
||||
// Do not grab focus during follow-up questions
|
||||
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
|
||||
if (!isHidden && !sendingDisabled && !enableButtons) {
|
||||
textAreaRef.current?.focus()
|
||||
}
|
||||
break
|
||||
|
|
@ -859,7 +858,6 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
handleSecondaryButtonClick,
|
||||
setCheckpointWarning,
|
||||
playSound,
|
||||
clineAsk,
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -978,13 +976,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
|
|||
|
||||
useDebounceEffect(
|
||||
() => {
|
||||
// Do not grab focus during follow-up questions
|
||||
if (!isHidden && !sendingDisabled && !enableButtons && clineAsk !== "followup") {
|
||||
if (!isHidden && !sendingDisabled && !enableButtons) {
|
||||
textAreaRef.current?.focus()
|
||||
}
|
||||
},
|
||||
50,
|
||||
[isHidden, sendingDisabled, enableButtons, clineAsk],
|
||||
[isHidden, sendingDisabled, enableButtons],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import {
|
|||
type TelemetrySetting,
|
||||
type OrganizationAllowList,
|
||||
type CloudOrganizationMembership,
|
||||
DEFAULT_CHECKPOINT_TIMEOUT_SECONDS,
|
||||
ORGANIZATION_ALLOW_ALL,
|
||||
} from "@roo-code/types"
|
||||
|
||||
|
|
@ -206,7 +207,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
|
|||
ttsSpeed: 1.0,
|
||||
diffEnabled: false,
|
||||
enableCheckpoints: true,
|
||||
checkpointTimeout: 15, // Default to 15 seconds
|
||||
checkpointTimeout: DEFAULT_CHECKPOINT_TIMEOUT_SECONDS, // Default to 15 seconds
|
||||
fuzzyMatchThreshold: 1.0,
|
||||
language: "en", // Default language code
|
||||
writeDelayMs: 1000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue