mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
fix(tui): enable clipboard hotkeys in mac input fields
This commit is contained in:
parent
c3af012a35
commit
88396698ea
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import { Box, Text } from '@hermes/ink'
|
|||
import { useState } from 'react'
|
||||
|
||||
import type { Theme } from '../theme.js'
|
||||
import { isMac } from '../lib/platform.js'
|
||||
|
||||
import { TextInput } from './textInput.js'
|
||||
|
||||
|
|
@ -18,7 +19,7 @@ export function MaskedPrompt({ cols = 80, icon, label, onSubmit, sub, t }: Maske
|
|||
|
||||
<Box>
|
||||
<Text color={t.color.label}>{'> '}</Text>
|
||||
<TextInput columns={Math.max(20, cols - 6)} mask="*" onChange={setValue} onSubmit={onSubmit} value={value} />
|
||||
<TextInput columns={Math.max(20, cols - 6)} allowClipboardHotkeys={isMac} mask="*" onChange={setValue} onSubmit={onSubmit} value={value} />
|
||||
</Box>
|
||||
</Box>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue