Skip to content

macOS 下的 cmd 按键的 keycode 错误, 应为 91 , 不是 0 . #18466

@finscn

Description

@finscn

Cocos Creator version

3.8.5

System information

macOS

Issue description

macOS 下的 cmd 按键的 keycode 错误

Linux 的 meta 键 和 mac 的 cmd 按键的 keycode 是 91 (左边的) 和 93(右边的).

cocos里一直当 0 (未知, 未分配) 来处理. 希望能完善下.

这个问题 2.x 时代就有人提过, 当时你们官方还回复了, 表示会跟进.


顺便问下, 你们什么时候修正下你们官方的 eslint 和 tsconfig 的问题 ? 如果修正了 我可以提交PR.

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageNeeds to be assigned by the team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions