Skip to content

Task #223: Ctrl/Cmd+O 파일 열기 단축키 추가#749

Closed
oksure wants to merge 2 commits into
edwardkim:develfrom
oksure:contrib/keyboard-shortcuts-extend
Closed

Task #223: Ctrl/Cmd+O 파일 열기 단축키 추가#749
oksure wants to merge 2 commits into
edwardkim:develfrom
oksure:contrib/keyboard-shortcuts-extend

Conversation

@oksure

@oksure oksure commented May 9, 2026

Copy link
Copy Markdown
Contributor

문제

Ctrl+O (Windows) / Cmd+O (macOS) 단축키로 파일 열기가 지원되지 않습니다. 대부분의 문서 편집기에서 기본 제공하는 단축키입니다.

수정 내용

  • shortcut-map.ts: Ctrl+O → file:open 매핑 추가
  • main.ts setupGlobalShortcuts: 문서 미로드 상태에서도 Ctrl/Cmd+O로 파일 열기 대화상자 호출
  • 한글 IME 상태()도 처리

범위

이 PR은 #223의 일부로, 파일 열기 단축키만 구현합니다.

검증

  • TypeScript 타입 체크 통과

감사합니다.

shortcut-map에 Ctrl+O → file:open 매핑 추가.
setupGlobalShortcuts에 Ctrl/Cmd+O 핸들러 추가 —
문서 미로드 상태에서도 동작.
한글 IME 상태(ㅐ)도 처리.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 9, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ctrl+O(Windows) / Cmd+O(macOS)로 “파일 열기”를 지원하도록 단축키 체계를 확장해, 문서 미로드 상태에서도 기본 편집기 수준의 열기 UX를 제공하려는 PR입니다.

Changes:

  • setupGlobalShortcuts()에 Ctrl/Cmd+O 전역 처리 추가(문서 미로드 상태에서도 file:open 디스패치)
  • 기본 단축키 매핑에 Ctrl+O → file:open 추가

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rhwp-studio/src/main.ts 문서 미로드 상태에서 Ctrl/Cmd+O를 가로채 file:open을 실행하도록 전역 키다운 핸들링 추가
rhwp-studio/src/command/shortcut-map.ts 편집기 단축키 테이블에 Ctrl+O → file:open 매핑 추가

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 19 to 23
// 파일
[{ key: 'n', alt: true }, 'file:new-doc'],
[{ key: 'ㅜ', alt: true }, 'file:new-doc'],
[{ key: 'o', ctrl: true }, 'file:open'],
[{ key: 's', ctrl: true }, 'file:save'],
한글 입력 상태에서 'O' 키는 'ㅐ'로 입력됨.
기존 Alt+N ↔ ㅜ 패턴처럼 Ctrl+O ↔ ㅐ 매핑을 shortcut-map에 추가.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@oksure

oksure commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Copilot 리뷰 반영: a246d962에서 한글 IME 상태(ㅐ)에서도 Ctrl+O가 동작하도록 shortcut-map에 매핑 추가했습니다.

edwardkim added a commit that referenced this pull request May 10, 2026
기존 Alt+N (새 문서) 패턴 정합 — setupGlobalShortcuts + shortcut-map 영역 영역 동일 패턴 적용:
- Ctrl/Cmd+O → file:open (문서 미로드 상태에서도 동작)
- 한글 IME 매핑: Ctrl+ㅐ (Alt+ㅜ 패턴 정합)

검증:
- tsc --noEmit ✅
- cargo test --release ALL GREEN
- 광범위 sweep 170/170 same
- WASM 4.66 MB
- 웹 에디터 인터랙션 검증 ✅ 통과

Issue #223 OPEN 유지 — Cmd+Arrow / Opt+Arrow 등 후속 단계 잔존 (PR #746 의 Ctrl/Cmd+Arrow 영역 별도 단계)
@edwardkim

Copy link
Copy Markdown
Owner

@oksure 검토 완료했습니다. 감사합니다.

처리 결과

Merge commit: 55cc65d6 (devel)

본질

기존 Alt+N (새 문서) 패턴 정합 — setupGlobalShortcuts + shortcut-map 영역 동일 패턴 + 한글 IME 매핑 (Alt+ㅜ ↔ Ctrl+ㅐ).

인프라 재사용

  • file:open 커맨드 (File System Access API + file-input fallback) 기존 구현 재호출
  • setupGlobalShortcuts Alt+N 핸들러 패턴 정합
  • 한글 IME 매핑 패턴 정합

검증

  • TypeScript / cargo test ALL GREEN
  • 광범위 sweep 170/170 same
  • WASM 4.66 MB
  • 웹 에디터 인터랙션 검증 통과 (Ctrl+O / Cmd+O / Ctrl+ㅐ + 문서 미로드 상태)

Issue #223 은 OPEN 유지합니다 — Cmd+Arrow / Opt+Arrow / 한컴 주요 단축키 영역 의 후속 단계 잔존.

5/10 사이클 17번째 PR — 수고하셨습니다.

@edwardkim

Copy link
Copy Markdown
Owner

Merged. Merge commit: 55cc65d

@edwardkim edwardkim closed this May 10, 2026
edwardkim added a commit that referenced this pull request May 10, 2026
PR #749 (Part of #223) 처리 보고서 + 검토 문서 archives 이동 + 5/10 orders 17번째 PR 행 추가.
Ctrl/Cmd+O 파일 열기 단축키 — Alt+N 패턴 정합 + 한글 IME (Ctrl+ㅐ) 매핑.

Merge commit: 55cc65d
Cherry-pick: d114a56 + 0390b9b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants