eclipse-theia/theia
Ver no GitHubUncaught Error: Cannot get key code from the keyboard event. Keydown event without code on chrome
Open
#10.702 aberto em 2 de fev. de 2022
help wantedkeybindings
Métricas do repositório
- Stars
- (18.676 stars)
- Métricas de merge de PR
- (Mesclagem média 12d 10h) (73 fundiu PRs em 30d)
Description
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:
- Create an input and link it with a datalist containing several options in Chrome.
- Listen for keydown events.
- Click an option
- Observe that there is no key information in the event.
Additional Information
- Operating System: Windows 10, Chrome 97
- Theia Version: Last, 1.22 (browser)