Compare commits
2 Commits
5cec4a7a6f
...
f2fed518f0
| Author | SHA1 | Date | |
|---|---|---|---|
| f2fed518f0 | |||
| cc2a638c76 |
@@ -33,12 +33,10 @@ export const MobileTerminalWrapper: React.FC<MobileTerminalWrapperProps> = ({
|
|||||||
} | null>(null);
|
} | null>(null);
|
||||||
|
|
||||||
const headerAutoHide = useAutoHide({ timeout: 3000, enabled: isMobile });
|
const headerAutoHide = useAutoHide({ timeout: 3000, enabled: isMobile });
|
||||||
const keysAutoHide = useAutoHide({ timeout: 3000, enabled: isMobile });
|
|
||||||
|
|
||||||
const handleTerminalTap = useCallback(() => {
|
const handleTerminalTap = useCallback(() => {
|
||||||
headerAutoHide.toggle();
|
headerAutoHide.toggle();
|
||||||
keysAutoHide.toggle();
|
}, [headerAutoHide]);
|
||||||
}, [headerAutoHide, keysAutoHide]);
|
|
||||||
|
|
||||||
const handleTerminalReady = useCallback(
|
const handleTerminalReady = useCallback(
|
||||||
(sendData: (data: string) => void, connectionStatus: "connecting" | "connected" | "disconnected" | "error", focusInput: () => void) => {
|
(sendData: (data: string) => void, connectionStatus: "connecting" | "connected" | "disconnected" | "error", focusInput: () => void) => {
|
||||||
@@ -92,7 +90,7 @@ export const MobileTerminalWrapper: React.FC<MobileTerminalWrapperProps> = ({
|
|||||||
|
|
||||||
<SpecialKeysStrip
|
<SpecialKeysStrip
|
||||||
onSend={handleSendKey}
|
onSend={handleSendKey}
|
||||||
isVisible={keysAutoHide.isVisible && !showPanel}
|
isVisible={!showPanel}
|
||||||
onMoreClick={() => setShowPanel(true)}
|
onMoreClick={() => setShowPanel(true)}
|
||||||
onKeepFocus={() => terminalRef?.focusInput()}
|
onKeepFocus={() => terminalRef?.focusInput()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user