dream-num / univer

Univer is an open-source productivity tool dev kit helping you integrate spreadsheets, docs and slides into your applications.
https://univer.ai
Apache License 2.0
6.56k stars 560 forks source link

[Bug] Korean Input Issue: Extra Character Appears After Cursor Movement #2826

Open kabyeon opened 1 month ago

kabyeon commented 1 month ago

Before you submit this issue, have you checked the following

Affected packages and versions

0.2.2

Reproduction link

https://github.com/user-attachments/assets/48502be7-2272-4317-b66a-f795de29537d

When using the "univer" component, specifically while inputting Korean text, an issue occurs where an extra character appears after moving the cursor away from the input field. This problem significantly affects the text input functionality and user experience.

Steps to Reproduce:

  1. Open the univer component.
  2. Click on a cell to start editing.
  3. Enter Korean text (e.g., using an IME input method).
  4. Move the cursor to another position within the cell or outside of the input field.

Expected behavior

The Korean text input should be accurately reflected in the cell, and no additional characters should appear after cursor movement.

Actual behavior

An extra character appears in the text after moving the cursor away from the input field. This character seems to be an unintended addition caused by the input handling process.

System information

System: OS: Windows 11 10.0.22631 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 112.20 GB / 127.71 GB Binaries: Node: 20.15.1 - C:\Program Files\nodejs\node.EXE npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 126.0.6478.183 Edge: Chromium (126.0.2592.102) Internet Explorer: 11.0.22621.3527

jikkai commented 1 month ago

It seems that this issue cannot be reproduced in the latest version of Univer using the Korean IME built into macOS. If you can still reproduce this problem on Windows, please provide more information about the IME.

kabyeon commented 1 month ago

Thank you for the prompt response. I appreciate you checking this issue on macOS.

I am using Windows ["Windows 11 Pro, Version 23H2"], and the problem persists with the Korean IME. The specific IME I am using is the default Korean keyboard input method provided by Windows.

Here are some additional details:

The issue occurs consistently when typing Korean characters in a cell and moving the cursor. If you need further details or would like me to test anything else, please let me know. I’m happy to assist in resolving this issue. image