键盘事件具有键=“进程”。在Chromebook上

发布于 2025-01-23 04:26:59 字数 452 浏览 3 评论 0原文

我正在研究文本编辑器,并且在Chromebook上面临奇怪的行为。当他们按组成键(例如`or ^)时,我会收到一个键=“ process”的键盘事件。这无处可见。它不会遵循 specs ,我找不到任何东西关于它在互联网上。

这里的主要问题是该事件发生后的组成不会开始,因此编辑器同时打印了构图密钥和字母。像^a而不是。我在2张Chromebook上测试了,并得到了相同的结果。

有趣的是,如果我两次按键,我会正确地获得dead密钥事件,并且构图正常启动。

有谁知道此Process键的含义一无所知?

I'm working on a text editor and I'm facing a weird behavior on Chromebooks. When they press a composition key (like ` or ^), I receive a keyDown event with key="Process". 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 â. I tested on 2 Chromebooks and got the same result.

What is interesting though is that, if I press the key twice, I correctly get a Dead key event, and the composition starts normally.

Does anyone know anything about the meaning of this Process key?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没有伤那来痛 2025-01-30 04:26:59

“过程”是指输入方法编辑器(IME)。指示IME处理转换。 IMA本身用于某些语言(中文,日语等)的输入数据,输入动作是触发特定组成事件。

简而言之,它通过调用“ coptosingstart”事件打开一个将拉丁字符传输到逻辑字符(例如日语)的窗口。

关于构图事件的文档

关于公共IME键值的文档

"Process" refers to the Input Method Editor (IME). Instructs the IME to process the conversion. The IMA itself is used for input data in some languages (Chinese, Japanese, etc.) Input action is trigger specific Composition Events.

In simple, it opens a window for transferring Latin characters to logographic characters (Japanese for example) by calling the "compositionstart" event.

Documentation about Composition Events

Documentation about Common IME keys values

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文