케이스 ce-0173-undo-redo-custom-text-insert-ko · 시나리오 scenario-undo-redo-stack

사용자 정의 텍스트 삽입을 실행 취소할 수 없음

OS: Windows 11 기기: Desktop or Laptop Any 브라우저: Chrome 120.0 키보드: US 초안
undoredotextinsertionchrome

현상

preventDefault()를 사용하고 사용자 정의 텍스트 삽입을 구현할 때 Ctrl+Z를 사용하여 해당 작업을 실행 취소할 수 없습니다. 실행 취소 스택에 사용자 정의 텍스트 삽입이 포함되지 않습니다.

재현 예시

  1. preventDefault()로 사용자 정의 텍스트 삽입 구현
  2. 일부 텍스트를 삽입합니다
  3. 실행 취소를 위해 Ctrl+Z 누르기

관찰된 동작

  • 텍스트 삽입이 실행 취소되지 않습니다
  • 브라우저의 실행 취소 스택에 작업이 포함되지 않습니다
  • 사용자가 사용자 정의 텍스트 삽입을 실행 취소할 수 없습니다
  • 사용자 정의 기능에 대해 실행 취소/다시 실행 기능이 깨집니다

예상 동작

  • 사용자 정의 텍스트 삽입이 실행 취소 가능해야 합니다
  • 실행 취소 스택에 모든 작업이 포함되어야 합니다
  • Ctrl+Z가 사용자 정의 삽입에 대해 작동해야 합니다
  • 다시 실행도 작동해야 합니다

브라우저 비교

  • 모든 브라우저: 사용자 정의 작업이 실행 취소 스택에 없음
  • 이것은 preventDefault()를 사용할 때 예상되는 동작입니다
  • 사용자 정의 실행 취소/다시 실행 구현 필요

참고 및 해결 방법 가능한 방향

  • 사용자 정의 실행 취소/다시 실행 스택 구현
  • 각 텍스트 삽입 전 상태 저장
  • 실행 취소 시 상태 복원
  • Ctrl+Z 및 Ctrl+Y를 수동으로 처리

이 시나리오의 변형

케이스 OS 브라우저 상태
ce-0113-undo-redo-custom-ops-ko Windows 11 Chrome 120.0 초안
ce-0129-undo-redo-stack-cleared-ko Windows 11 Chrome 120.0 초안
ce-0141-undo-redo-multiple-ops-ko Windows 11 Chrome 120.0 초안
ce-0150-undo-redo-custom-formatting-ko Windows 11 Chrome 120.0 초안
ce-0173-undo-redo-custom-text-insert-ko Windows 11 Chrome 120.0 초안

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: US
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.