mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-12-14 08:06:22 +00:00
Update terminal-panel.tsx
This commit is contained in:
@@ -503,6 +503,9 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
case "CTRL_C":
|
case "CTRL_C":
|
||||||
seq = "\x03"
|
seq = "\x03"
|
||||||
break
|
break
|
||||||
|
case "ENTER":
|
||||||
|
seq = "\r"
|
||||||
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@@ -770,7 +773,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 px-3 text-xs"
|
className="h-8 px-2 text-xs"
|
||||||
>
|
>
|
||||||
↑
|
↑
|
||||||
</Button>
|
</Button>
|
||||||
@@ -782,7 +785,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 px-3 text-xs"
|
className="h-8 px-2 text-xs"
|
||||||
>
|
>
|
||||||
↓
|
↓
|
||||||
</Button>
|
</Button>
|
||||||
@@ -794,7 +797,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 px-3 text-xs"
|
className="h-8 px-2 text-xs"
|
||||||
>
|
>
|
||||||
←
|
←
|
||||||
</Button>
|
</Button>
|
||||||
@@ -806,10 +809,22 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 px-3 text-xs"
|
className="h-8 px-2 text-xs"
|
||||||
>
|
>
|
||||||
→
|
→
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
onPointerDown={(e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
e.stopPropagation()
|
||||||
|
handleKeyButton("ENTER", e)
|
||||||
|
}}
|
||||||
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
|
className="h-8 px-3 text-xs"
|
||||||
|
>
|
||||||
|
↵
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onPointerDown={(e) => {
|
onPointerDown={(e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
@@ -818,7 +833,7 @@ export const TerminalPanel: React.FC<TerminalPanelProps> = ({ websocketUrl, onCl
|
|||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="h-8 px-3 text-xs"
|
className="h-8 px-2 text-xs"
|
||||||
>
|
>
|
||||||
CTRL+C
|
CTRL+C
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user