chore(ux): macOS 사용자 위해 Cmd 키 hint 안내
renderer 두 곳의 단축키 안내 텍스트가 'Ctrl+...' hardcoded 였음. 사용자에게 보여지는 hint 만 platform-aware 로 분기 (navigator.platform 검사) — Mac 에서는 'Cmd+Shift+J', 'Cmd+Enter' 로 표시. main 의 globalShortcut accelerator 는 이미 platform 별 분기되어 있어 별개 영향 없음. UI 안내만 일치시키는 변경. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,9 @@ import { SearchBox } from './components/SearchBox.js';
|
||||
import { ReviewView } from './components/ReviewView.js';
|
||||
import type { InboxView } from './store.js';
|
||||
|
||||
// QuickCapture 단축키 modifier — macOS 는 Cmd, 그 외는 Ctrl.
|
||||
const MOD_KEY = /Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl';
|
||||
|
||||
export function App(): React.ReactElement {
|
||||
const {
|
||||
notes, trashNotes, trashCount, showTrash,
|
||||
@@ -190,7 +193,7 @@ export function App(): React.ReactElement {
|
||||
) : searchResults !== null && displayed.length === 0 ? (
|
||||
<div className="empty">검색 결과가 없습니다.</div>
|
||||
) : notes.length === 0 ? (
|
||||
<div className="empty">머릿속에 떠다니는 한 줄을 적어보세요. <code>Ctrl+Shift+J</code></div>
|
||||
<div className="empty">머릿속에 떠다니는 한 줄을 적어보세요. <code>{MOD_KEY}+Shift+J</code></div>
|
||||
) : displayed.length === 0 ? (
|
||||
<div className="empty">이 태그의 노트가 없습니다.</div>
|
||||
) : (
|
||||
|
||||
@@ -3,6 +3,9 @@ import { captureApi } from './api.js';
|
||||
|
||||
interface PastedImage { url: string; buffer: ArrayBuffer; }
|
||||
|
||||
// 저장 단축키 modifier — macOS 는 Cmd, 그 외는 Ctrl.
|
||||
const MOD_KEY = /Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl';
|
||||
|
||||
export function App(): React.ReactElement {
|
||||
const [text, setText] = useState('');
|
||||
const [images, setImages] = useState<PastedImage[]>([]);
|
||||
@@ -65,7 +68,7 @@ export function App(): React.ReactElement {
|
||||
{images.map((i, idx) => (<img key={idx} src={i.url} alt="" />))}
|
||||
</div>
|
||||
)}
|
||||
<div className="hint">Ctrl+Enter 저장 · Esc 취소 · 이미지 붙여넣기</div>
|
||||
<div className="hint">{MOD_KEY}+Enter 저장 · Esc 취소 · 이미지 붙여넣기</div>
|
||||
{err && <div className="err">{err}</div>}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user