简体   繁体   English

IntelliJ 快捷键和键盘布局

[英]IntelliJ shortcut and keyboard layout

I recently acquired an HP Spectre 13 on which I installed GNU/Linux (Arch Linux).我最近购买了一台安装了 GNU/Linux (Arch Linux) 的 HP Spectre 13。 I then installed IntelliJ.然后我安装了 IntelliJ。 Everything seemed fine until I tried the shortcut.一切似乎都很好,直到我尝试了快捷方式。

I'm on an AZERTY keyboard.我在 AZERTY 键盘上。 I configured the system layout so that I can enjoy the right layout, ie when I type the letter "a", I've got an "a", and so on.我配置了系统布局,以便我可以享受正确的布局,即当我输入字母“a”时,我得到了一个“a”,依此类推。 However, with IntelliJ, when typing text, the recognized keyboard layout is "azerty", but using shortcuts, IntelliJ recognizes a "qwerty" layout.但是,使用 IntelliJ,在键入文本时,识别的键盘布局是“azerty”,但使用快捷方式,IntelliJ 会识别“qwerty”布局。

Example: To select all the text, we do ^A .示例:要选择所有文本,我们执行^A But instead, I get a ^Q , though the letter "a" is recognized as an "a" when I code.但是相反,我得到了一个^Q ,尽管在我编码时字母“a”被识别为“a”。

I'm clueless on this one, since for instance ^A works fine in my web browser.我对此一无所知,因为例如^A在我的网络浏览器中工作正常。 I doubt it may come from the hardware, but who knows.我怀疑它可能来自硬件,但谁知道呢。

PS: Whether it's IntelliJ 13 or 14, the problem is the same. PS:不管是IntelliJ 13还是14,问题都是一样的。

Alternatively, make the azerty keyboard layout first in order in system settings.或者,首先在系统设置中按顺序进行 azerty 键盘布局。

Source link . 来源链接

And BTW, guess what, the problem still persists in 2020. 😁顺便说一句,你猜怎么着,这个问题在 2020 年仍然存在。😁

UPDATE: As of September 2020 there is a new checkbox to solve this: (Settings -> Keymap -> Use National layouts for shortcuts)更新:截至 2020 年 9 月,有一个新复选框可以解决此问题:(设置 -> 键盘映射 -> 使用国家布局作为快捷方式)

在此处输入图片说明

For me, IntelliJ was using a different keyboard layout on Debian Jessie.对我来说,IntelliJ 在 Debian Jessie 上使用了不同的键盘布局。

Force IntelliJ to use the French KB layout:强制 IntelliJ 使用法语 KB 布局:

setxkbmap fr

https://wiki.debian.org/Keyboard https://wiki.debian.org/Keyboard

I finally found a solution by forcing the keyboard layout with the "setxkb" utility.我终于通过使用“setxkb”实用程序强制键盘布局找到了解决方案。

setxkb fr

It seems that doing it through my Desktop Environment (Cinammon) only solves it partially.似乎通过我的桌面环境(Cinammon)来做这件事只能部分解决它。 It was also buggy.它也是越野车。

So I decided to move to something more basic such as awesome and bspwm , where things doesn't come magically since you have to configure everything yourself.所以我决定转向更基本的东西,比如awesomebspwm ,因为你必须自己配置一切,所以事情不会神奇地发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM