Fix dialog focus
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
*/
|
||||
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import { Box, Text, useInput } from 'ink';
|
||||
import { Box, Text } from 'ink';
|
||||
import { colors, formatSatoshis } from '../../../../theme.js';
|
||||
import { useLayeredInput } from '../../../../hooks/useInputLayer.js';
|
||||
import type { ReviewStepProps, SelectableUTXO } from '../types.js';
|
||||
|
||||
/** Default fee estimate in satoshis. */
|
||||
@@ -55,9 +56,9 @@ export function ReviewStep({
|
||||
}
|
||||
}, [invitation, selectedRole, selectedInputs, onComplete]);
|
||||
|
||||
// Keyboard handling
|
||||
useInput((_input, key) => {
|
||||
if (!isActive || isSubmitting) return;
|
||||
// Keyboard handling — gated by the import-flow layer.
|
||||
useLayeredInput('import-flow', (_input, key) => {
|
||||
if (isSubmitting) return;
|
||||
|
||||
if (key.return) {
|
||||
submit();
|
||||
|
||||
Reference in New Issue
Block a user