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.

Neo keyboard layout: Some Keys stopped working

See original GitHub issue
  • VSCode Version: Code 1.11.0 (9122ec4b1068bd391e41974f46a4b54c1b9c90f9, 2017-04-05T21:13:24.700Z)
  • OS Version: Linux x64 4.4.0-72-generic

Steps to Reproduce:

  1. Install and activate Neo keyboard layout
  2. Open any source file in VS code
  3. Put cursor somewhere in the file
  4. Press M4 key and hold. Press s key (see image)
  5. Instead of the cursor moving left, nothing happens

In the previous version of VSCode (1.10.2 8076a19fdcab7e1fc1707952d652f0bb6c6db331) this worked just fine .

tastatur_e4b png

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:20
  • Comments:33 (4 by maintainers)

github_iconTop GitHub Comments

37reactions
alexdimacommented, Apr 6, 2017

I need some time to understand this keyboard layout. I will ping you in the coming days if you’d be kind enough to help me out. It is unlike anything I’ve seen.

Workaround to switch VS Code to dispatch based on key code again. Add the following setting: "keyboard.dispatch": "keyCode" and restart VS Code

9reactions
MaxGyver83commented, Apr 12, 2020

I’m new to VS Code and I use the KOY layout (with some adaptions) on Linux (setxkbmap de koy). Same problem as with Neo2: I can type a hyphen by pressing CapsLock+L in the editor. But shortcuts containing CapsLock don’t work (like zooming out with Ctrl+- = Ctrl-CapsLock-L).

The keybindings issues page recommends running <kbd>F1</kbd> > Developer: Inspect key mappings if nothing else helps.

With the standard German layout (setxkbmap de), I get this for the <kbd>L</kbd> key:

	"KeyL": {
		"value": "l",
		"withShift": "L",
		"withAltGr": "ł",
		"withShiftAltGr": "Ł"
	}

With KOY (setxkbmap de koy), I get:

	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "n",
		"withShiftAltGr": "N"
	},

Apparently, VS Code doesn’t get the higher levels of the layout right!

Some additional technical information about this keyboard layout family (neo, adnw, koy, bone):

In the German default layout, <kbd>AltGr</kbd> is mapped to ISO_Level3_Shift (in Linux). In Neo2 (and alike), <kbd>AltGr</kbd> is mapped to ISO_Level5_Shift and <kbd>CapsLock</kbd> is mapped to ISO_Level3_Shift.

So I think, we should see in the output of > Developer: Inspect key mappings either

	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "-",

(because CapsLock replaces AltGr in Neo2 in terms of being the new ISO_Level3_Shift key)

or

	"KeyL": {
		"value": "n",
		"withShift": "N",
		"withAltGr": "6",

(because you get a “6” when you press the physical <kbd>AltGr</kbd> key plus the <kbd>L</kbd> key as you can see in OP’s screenshot).

I hope, this helps you VS Code developers better understanding our problem.

I’m aware that I (and others) are mixing some issues concerning Neo here. But they might be related.

Tested on Ubuntu 18.04 with this version of VS Code/Codium:

Version: 1.44.0
Commit: 2aae1f26c72891c399f860409176fe435a154b13
Date: 2020-04-09T10:44:46.342Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 4.15.0-96-generic
Read more comments on GitHub >

github_iconTop Results From Across the Web

Arrow keys not working with NEO keyboard layout : VIM-987
This is a follow-up on IDEA-135540: The arrow keys on the NEO keyboard layout stop working when the IdeaVim plugin is enabled. This...
Read more >
[SOLVED] Some Keys not working correctly with NEO2 ...
Hi, im using Windows with NEO2 Keyboard Layout. Now i noticed that is Segger Embedded Studio some Keys are not working properly.
Read more >
Mod4 keys don't work for "German (Neo 2)" keyboard layout
My first keyboard layout is German. The second is "German (Neo 2)". The problem is that the Mod4 don't work for Neo. The...
Read more >
Neo/AdNW/KOY Keyboard Layout - Mod4 broken - Ask Ubuntu
Problem is: If i want to use Mod4, aka Layer 4 (on german-qwertz-keys "<" and "AltGr"), this is not possible. I checked with...
Read more >
Neo Keyboard Layout is stuck at level 3 / Newbie Corner ...
I had a problem regarding the keyboard layout being stuck in the 3rd layer ... Whenever I started typing, the keys from the...
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