feat: always show special keys strip on mobile terminal
- Remove auto-hide behavior for special keys strip - Keep header auto-hide functionality - Special keys are now always visible for quick access
This commit is contained in:
@@ -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