简体   繁体   English

键盘事件在 Chromebook 上有 key="Process"

[英]keyboard event has key="Process" on Chromebook

I'm working on a text editor and I'm facing a weird behavior on Chromebooks.我正在使用文本编辑器,我在 Chromebook 上遇到了奇怪的行为。 When they press a composition key (like ` or ^), I receive a keyDown event with key="Process".当他们按下组合键(如 ` 或 ^)时,我会收到带有 key="Process" 的 keyDown 事件。 This is documented nowhere.这在任何地方都没有记录。 It doesn't follow the specs , and I couldn't find anything about it on the internet.它不符合规格,我在互联网上找不到任何关于它的信息。

The main issue here is that the composition doesn't start after this event, and so the editor prints both the composition key and the letter.这里的主要问题是在此事件之后没有开始合成,因此编辑器会打印合成键和字母。 Like ^a instead of â .喜欢^a而不是â I tested on 2 Chromebooks and got the same result.我在 2 台 Chromebook 上进行了测试,得到了相同的结果。

What is interesting though is that, if I press the key twice, I correctly get a Dead key event, and the composition starts normally.有趣的是,如果我按两次键,我正确地得到了一个Dead键事件,并且合成正常开始。

Does anyone know anything about the meaning of this Process key?有谁知道这个Process键的含义?

"Process" refers to the Input Method Editor (IME). “进程”是指输入法编辑器 (IME)。 Instructs the IME to process the conversion.指示 IME 处理转换。 IMA itself using for input data in some languages (Chinese, Japanese, etc.) Input action is trigger specific Composition Events. IMA 本身用于某些语言(中文、日文等)的输入数据。输入动作是触发特定的合成事件。

In simple, it opens a window for transferring Latin characters to logographic characters (Japanese for example) by calling the "compositionstart" event.简单来说,它通过调用“compositionstart”事件打开一个 window 用于将拉丁字符转换为标识字符(例如日语)。

Documentation about Composition Events关于组合事件的文档

Documentation about Common IME keys values 关于通用 IME 键值的文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM