Microsoft/vscode

Keyboard mappings with `setxkbmap` on Linux not working

Open

#23,991 建立於 2017年4月6日

在 GitHub 查看
 (103 留言) (286 反應) (1 負責人)TypeScript (74,848 star) (10,221 fork)batch import
bughelp wantedkeybindingslinux

描述

  • VSCode Version: 1.11.0
  • OS Version: Ubuntu 16.04

I have my Caps Lock key bound to Escape using setxkbmap on Linux. This worked fine till 1.10, but broke with 1.11. At first I thought it was an issue with the VSCodeVim extension, but the issue persists with all the other Vim extensions on the marketplace as well. Pressing the escape button still works as expected.

The binding is still respected everywhere else in the operating system, it's only Visual Studio Code that ignores it for some reason.

Steps to Reproduce:

  1. Run setxkbmap -option caps:escape (binds caps to escape for the duration of the session)
  2. Hitting caps lock when in insert mode (with a Vim extension like VSCodeVim installed) no longer puts you normal mode.
  3. Hitting escape still works as expected and puts you in normal mode.

貢獻者指南