mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-16 17:11:04 -07:00
Fix bug where users are unable to re-enter disconnected terminals. (#8765)
This commit is contained in:
@@ -388,6 +388,9 @@ export function KeypressProvider({
|
||||
};
|
||||
|
||||
const handleKeypress = (_: unknown, key: Key) => {
|
||||
if (key.sequence === FOCUS_IN || key.sequence === FOCUS_OUT) {
|
||||
return;
|
||||
}
|
||||
if (key.name === 'paste-start') {
|
||||
isPaste = true;
|
||||
return;
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
|
||||
import { createContext, useContext } from 'react';
|
||||
|
||||
export const FocusContext = createContext<boolean>(true);
|
||||
export const ShellFocusContext = createContext<boolean>(true);
|
||||
|
||||
export const useFocusState = () => useContext(FocusContext);
|
||||
export const useShellFocusState = () => useContext(ShellFocusContext);
|
||||
@@ -110,7 +110,7 @@ export interface UIState {
|
||||
isRestarting: boolean;
|
||||
extensionsUpdateState: Map<string, ExtensionUpdateState>;
|
||||
activePtyId: number | undefined;
|
||||
shellFocused: boolean;
|
||||
embeddedShellFocused: boolean;
|
||||
}
|
||||
|
||||
export const UIStateContext = createContext<UIState | null>(null);
|
||||
|
||||
Reference in New Issue
Block a user