question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom keyboard layouts does not works properly on ozone wayland only mode

See original GitHub issue

Issue Type: Bug

I’m using Programmer Dvorak keyboard layout, keybindings only works fine on Xorg with default keyboard dispatch (code).

  1. Enable Programmer Dvorak keyboard layout on Linux (setxkbmap us dvp for Xorg)
  2. launch in wayland mode ./code-insiders --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox or change keyboard dispatch to keyCode
  3. Press shortcut Ctrl+Shift+[backtick] (create new integrated terminal, the last key is located at the left side of BACKSPACE key), it will zoom in instead (because it actually think the user inputed Ctrl+#).

I’ve tried Troubleshooting as well, and I find that it does not follow one single keymap. such like Ctrl+Shift+e works, but it shows strange keys (maybe from QWERTY) for most of combined keys especially those ones involves to the keys on number row.

Programmer Dvorak keyboard layout: Programmer Dvorak keyboard layout

VS Code version: Code - Insiders 1.58.0-insider (9056b400b527c562871093916081c3e6df2691dd, 2021-07-03T07:56:06.848Z) OS version: Linux x64 5.10.27-gentoo Restricted Mode: No

System Info
Item Value
CPUs Pentium® Dual-Core CPU E5700 @ 3.00GHz (2 x 2992)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: disabled_off
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 1, 1
Memory (System) 3.84GB (0.09GB free)
Process Argv –enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox
Screen Reader no
VM 0%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP undefined
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE wayland
Extensions: none
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
vsc_aa:30263845
vspre833:30321513
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158:30321503
pythonvsuse255:30319630
vscorehov:30301224
vscod805cf:30301675
pythonvspyt200:30323110
vscextlang:30310088
vsccppwt:30312692
bridge0702cf:30333156

I tried to build vscodium as well, would also appropriate if someone could tell a dirty workaround by patching something to get programmer dvorak works for me on wayland. so far I’ve only notice vscode/src/vs/workbench/services/keybinding/browser/keyboardLayouts/ but idk what should I edit.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
intentionally-left-nilcommented, Jul 20, 2021

I similarly am having an issue with the dvorak layout. For now, I worked around this by adding the following to my settings.json: "keyboard.dispatch": "keyCode" taken from https://github.com/microsoft/vscode/issues/23964

0reactions
dashezupcommented, Jul 6, 2021

Thanks I did what you suggested, patched and built vscodium with Programmer Dvorak as keyboard layout, it works properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard layout in Wayland doesn't work correctly - Ask Fedora
Locale is set correctly to language EN, using FR keyboard (azerty). All input past the logon screen is in qwerty. Changing the options...
Read more >
Wayland - ArchWiki - Arch Linux
Most Wayland compositors only work on systems using Kernel mode setting. Wayland by itself does not provide a graphical environment; for this you...
Read more >
Custom layout and variant keyboard in Wayland - Ask Ubuntu
The problem. In many applications like vscode, my keyboard does not work and remains in qwerty us. So I can't type the characters...
Read more >
disable gpu compositing - Gallarate Sposi
Anyway, Chromium with native Wayland support has recently reached beta —and it supports HiDPI! The fingerprint reader was working fine before the 1803 ......
Read more >
Openbox kiosk mode
Apr 02, 2018 · Google Chrome is one of the fastest and most widely used web browsers for desktop computers. e. being kiosk...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found