Skip to content

Chinese IME composition deletes preceding text in code cells on Google Chrome #7867

Description

@twenjun879

Description

I came across this problem when i am using a Chinese IME in jupyter notebook in chrome.
When i try to type in chinese, the text/code immediately preceding the cursor gets deleted. However, this issue does not appear if i type in English.

The problem does not happen in Microsoft edge, as i have tried. However it persists in a Chrome Incognito window. The problem also does not happen when i use chrome for other purpose except for notebook.

i am using notebook : 7.5.5

Reproduce

  1. Open jupyter notebook in chrome
  2. Create a new code cell and type some random English code (e.g., print("Hello"))
  3. Use a Chinese IME (e.g.,microsoft chinese ime) and start to type in chinese right behind the English code
  4. The end of English code get deleted.
    ( and if you try to type chinese in the middle of a code cell, more content get deleted)

Context

  • Operating System and version: Windows 11
  • Browser and version: chrome 148.0.7730.2

Notebook menu option or by running jupyter --version from your terminal -->

  • Jupyter Notebook version:
  • IPython : 8.22.2
    ipykernel : 6.29.5
    ipywidgets : not installed
    jupyter_client : 8.6.1
    jupyter_core : 5.7.2
    jupyter_server : 2.14.0
    jupyterlab : 4.5.6
    nbclient : 0.10.0
    nbconvert : 7.16.3
    nbformat : 5.10.4
    notebook : 7.5.5
    qtconsole : not installed
    traitlets : 5.14.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions