Restore keyboard mode when exiting the editor (#13350)

This commit is contained in:
Tommaso Sciortino
2025-11-19 11:37:30 -08:00
committed by GitHub
parent 3f8d636501
commit 84573992b4
6 changed files with 57 additions and 50 deletions
@@ -404,7 +404,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
if (key.paste) {
// Record paste time to prevent accidental auto-submission
if (!isTerminalPasteTrusted(kittyProtocol.supported)) {
if (!isTerminalPasteTrusted(kittyProtocol.enabled)) {
setRecentUnsafePasteTime(Date.now());
// Clear any existing paste timeout
@@ -820,7 +820,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
recentUnsafePasteTime,
commandSearchActive,
commandSearchCompletion,
kittyProtocol.supported,
kittyProtocol.enabled,
tryLoadQueuedMessages,
setBannerVisible,
],