Skip to content

KDE: Reading keyboard layout reads the wrong one #24166

Closed
@goetzc

Description

@goetzc

Since version 1.11.1 (last I used was 1.10.2), the shortcut to "Toggle Line Comment" (which was Ctrl+/) now zooms out, like when pressing (Ctrl+-). Pressing Ctrl+Shift+7 does work, but Shift+7 is &. The actual layout when writing text, is correctly set to US, but shortcuts are interpreted as DE.

  • VSCode Version: 1.11.1
  • OS Version: Arch Linux 64-bit (using the .tar.gz version)
  • Desktop environment: KDE Plasma 5.9
  • Current keyboard layout: EN-US

Steps to Reproduce:

  1. Open Keyboard Shortcuts.
  2. Find the shortcut and edit it.

Inside Developer: Inspect Key Mappings there is no VK_OEM_2.

Some interesting values:

Layout info:
{
	"model": "pc104",
	"layout": "de,us",
	"variant": "",
	"options": "grp:win_space_toggle,kpdl:dotoss,altwin:meta_alt,caps:ctrl_modifier",
	"rules": "evdev"
}
isUSStandard: false
	"Minus": {
		"value": "ß",
		"withShift": "?",
		"withAltGr": "\\",
		"withShiftAltGr": "¿"
	},
	"Slash": {
		"value": "-",
		"withShift": "_",
		"withAltGr": "–",
		"withShiftAltGr": "—"
	},

The issue seems to be that when there are multiple layouts configured, VS Code sets as key layout the first value for layout form setxkbmap -query, ignoring the current layout. If I switch to be en,de then VS Code uses the EN layout, as it is the first in the list. It would be handy if VS Code could use the current layout instead of the first from the list.

Metadata

Metadata

Assignees

Labels

author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderskeyboard-layoutKeyboard layout issueslinuxIssues with VS Code on LinuxverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions