eclipse-theia/theia

Uncaught Error: Cannot get key code from the keyboard event. Keydown event without code on chrome

开放

#10,702 创建于 2022年2月2日

 (11 条评论) (1 个反应) (0 位负责人)TypeScript (2,478 个派生)batch import
help wantedkeybindings

仓库指标

星标
 (18,676 个星标)
PR 合并指标
 (平均合并 15天 4小时) (30 天内合并 75 个 PR)

描述

Bug Description:

When I click a datalist option linked to an input on Chrome (not Firefox), a keydown event is triggered. This event does not have a key/code/keycode. I don't know if it is a bug of Chrome but in any case, the widget listens keydown events and tries to find the key. Exception is thrown here. The event should probably just be ignored in this case.

This error once happened with electron but it is probably not relevant anymore

Steps to Reproduce:

  1. Create an input and link it with a datalist containing several options in Chrome.
  2. Listen for keydown events.
  3. Click an option
  4. Observe that there is no key information in the event.

Additional Information

  • Operating System: Windows 10, Chrome 97
  • Theia Version: Last, 1.22 (browser)

贡献者指南