microsoft / microsoft/monaco-editor

Some keybindings don't work with non US-Layouts

Open
#1,233 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

Since monaco doesn't include the node-native-keymaps. For my german layout, for example, the 'lineComment' keybinding is still
cmdctrl+/ which doesn't map to a key on my layout. It should be translated to cmdctrl+shift+7 but we would need to get information about the keyboard layout which we don't have.
Does anybody have a solution to that or knows how to possibly solve this problem within a browser?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by investigating Monaco's keybinding handling and the browser-side availability of keyboard-layout information, with node-native-keymap as the referenced comparison; done would require a defined approach for translating bindings such as cmdctrl+/ on non-US layouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.