Skip to content

[Suggestion] On the issue of comma and the keyboard layout #5

@anesdiaf

Description

@anesdiaf

Al salamu alaikum brother mohamed,
Hope you're doing well,

I've watched your video about your extension and i did hear you talk about the problem with keyboard layouts changing with languages
(Qwerty,Azerty).

I would like to suggest to you a simple solution i've tried, that can make the shortcut constant across all keyboard layouts,
basically i've used event.code instead of event.key, the reason is that event.code property represents a physical key on the keyboard (as opposed to the character generated by pressing the key). you can refer back to https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code

this is my basic implementation

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions