mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Minor fixes
This commit is contained in:
parent
7e91e7aecb
commit
8146a51632
2 changed files with 7 additions and 7 deletions
|
|
@ -108,11 +108,11 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
|||
const handleKeyDown = useCallback(
|
||||
(event: React.KeyboardEvent<HTMLTextAreaElement>) => {
|
||||
if (showContextMenu) {
|
||||
if (event.key === "Escape") {
|
||||
// event.preventDefault()
|
||||
setShowContextMenu(false)
|
||||
return
|
||||
}
|
||||
// if (event.key === "Escape") {
|
||||
// // event.preventDefault()
|
||||
// setShowContextMenu(false)
|
||||
// return
|
||||
// }
|
||||
|
||||
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
||||
event.preventDefault()
|
||||
|
|
|
|||
|
|
@ -85,9 +85,9 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
|
|||
<div style={{ display: "flex", alignItems: "center" }}>
|
||||
<i className={`codicon codicon-${option.icon}`} style={{ marginRight: "8px" }} />
|
||||
{option.value === "File"
|
||||
? "Add file"
|
||||
? "Add File"
|
||||
: option.value === "Folder"
|
||||
? "Add folder"
|
||||
? "Add Folder"
|
||||
: option.value === "Problems"
|
||||
? "Workspace Problems"
|
||||
: option.value === "URL"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue