Enter key down as IME's convert-decision-operation accidentally send to standard input #16413
Labels
bug
tag:Keyboard
Compatibility issues with keyboards, including locale-specific and layout-specific issues
Description
We can't use decision-operation (確定)by enter-key on Japanese IME on macOS on Safari or Chrome with macOS standard Japanese IME or Google 日本語入力 (Google Japanese IME) on standard input like Python's
input()
in code block. There is no problem on Firefox.Come from https://teratail.com/questions/4d0bm1aqv9tye5 (Japanese, StackOverflow-like site).
The table work or fail on environments
I only checked for macOS. I don't know there are problems for Windows or Ubuntu etc.
Reproduce
Expected behavior
The content is not send, only do convert-decision-operation.
Context
Information
To use Japanese IME, convert-decision-operation is mandatory.
There is some notes about keydown event handling with Japanese IME:
The post written 2020 says we need special treatment for macOS + Safari and macOS + Chrome, and don't need for macOS + Firefox and Windows + Chrome. And need to use
KeyboardEvent.keyCode
or keypress event but both of them are deprecated.This post written in 2023 also uses
KeyboardEvent.keyCode
as a solution.Moved from posted at jupyter/notebook#7389.
The text was updated successfully, but these errors were encountered: