我在哪里可以获得 Blazor KeyboardEvents 中的键名
Where can I get the names of keys in Blazor KeyboardEvents
我们尝试使用 Blazor KeaboardEventArgs 做一些事情,但正在努力处理键名。文档告诉我们:
The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the char attribute. Otherwise, it's one of the key value strings specified in 'Key values'. If the key can't be identified, this is the string "Unidentified"
但是'Key Values'没有进一步说明。
谁能指出 KeyboardEventArgs.Key
和 KeyboardEventArgs.Code
的(详尽的)可能值列表?
它们是 JavaScript 使用的名称。
Mozilla 有 a list.
我们尝试使用 Blazor KeaboardEventArgs 做一些事情,但正在努力处理键名。文档告诉我们:
The key value of the key represented by the event. If the value has a printed representation, this attribute's value is the same as the char attribute. Otherwise, it's one of the key value strings specified in 'Key values'. If the key can't be identified, this is the string "Unidentified"
但是'Key Values'没有进一步说明。
谁能指出 KeyboardEventArgs.Key
和 KeyboardEventArgs.Code
的(详尽的)可能值列表?
它们是 JavaScript 使用的名称。
Mozilla 有 a list.