mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
Fix input focus issue by using useKeypress instead of useInput for ResumeSessionDialog
This commit is contained in:
parent
1098c23b26
commit
56a62bcb2a
2 changed files with 289 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ import { useState, useEffect, useRef } from 'react';
|
|||
import { Box, Text } from 'ink';
|
||||
import { SessionService, getGitBranch } from '@qwen-code/qwen-code-core';
|
||||
import { theme } from '../semantic-colors.js';
|
||||
import { useSessionPicker } from '../hooks/useSessionPicker.js';
|
||||
import { useDialogSessionPicker } from '../hooks/useDialogSessionPicker.js';
|
||||
import { SessionListItemView } from './SessionListItem.js';
|
||||
|
||||
export interface ResumeSessionDialogProps {
|
||||
|
|
@ -40,7 +40,7 @@ export function ResumeSessionDialog({
|
|||
? Math.max(3, Math.floor((availableTerminalHeight - 6) / 3))
|
||||
: 5;
|
||||
|
||||
const picker = useSessionPicker({
|
||||
const picker = useDialogSessionPicker({
|
||||
sessionService: sessionServiceRef.current,
|
||||
currentBranch,
|
||||
onSelect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue