Java PyCharm 对 Ctrl 快捷键没有响应

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19277335/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 15:38:57  来源:igfitidea点击:

PyCharm is not responding on Ctrl key shortcuts

javakeyboard-shortcutspycharm

提问by Vestel

Environment: XUbuntu 13.04, Java: Oracle 7 u40
PyCharm 3.0 Community Edition

Any shortcut which involves Ctrlkey is not working. For example, I can Copy-Paste text using mouse or middle-button, but not via Ctrl+C/Ctrl+V. When I hover mouse in menu, I can see shortcut tooltip and Settings confirm that shortcut is correct. But it is not working.
Shortcuts with Alt, like Alt+F7work normally.

任何涉及Ctrl键的快捷方式都不起作用。例如,我可以使用鼠标或中键复制粘贴文本,但不能通过Ctrl+ C/ Ctrl+ V。当我将鼠标悬停在菜单中时,我可以看到快捷方式工具提示和设置确认快捷方式是正确的。但它不起作用。
带有 的快捷方式Alt,如Alt+F7正常工作。

Other apps, for example, Aptana studio - which is Java and Eclipse-based works normally. All system applications work with Ctrlbutton OK.

其他应用程序,例如 Aptana studio - 基于 Java 和 Eclipse 的工作正常。所有系统应用程序都使用CtrlOK 按钮工作。

采纳答案by emirc

Probably IBus is messing with your Java keyboard shortcuts. Just do

可能 IBus 弄乱了您的 Java 键盘快捷键。做就是了

killall ibus-daemon

回答by Andrew Schweitzer

Rebooting my computer fixed the problem.

重新启动我的电脑解决了这个问题。

回答by ksaylor11

I was able to resolve my problem seemingly by rearranging my keyboard layouts on Debian, so that my English(US) keyboard was on top. I'm only putting this down as a answer because its a solution that is stuck in the comments section and not as an actual answer.

通过在 Debian 上重新排列我的键盘布局,我似乎能够解决我的问题,这样我的英语(美国)键盘就在上面。我只是把它作为一个答案,因为它是一个停留在评论部分的解决方案,而不是一个实际的答案。

回答by Jino Jossy

Thats probably because the keyboard layout opted during installation is either MAC OS X . I suggest you can try out different layouts.

那可能是因为安装过程中选择的键盘布局是 MAC OS X 。我建议你可以尝试不同的布局。

You can select different layout File>Settings>Keymap>Select one that is suitable for your system

您可以选择不同的布局 File>Settings>Keymap>选择适合您系统的布局

回答by Andrei Pokrovsky

If you are using Vim Emulation, it's possible that it's intercepting some Ctrl/Altcombinations. To see if this is the case you can go to Settings/Other Settings/Vim Emulation and switch the Handler dropdown from Vim to IDE.

如果您正在使用 Vim Emulation,它可能会拦截一些Ctrl/Alt组合。要查看是否是这种情况,您可以转到 Settings/Other Settings/Vim Emulation 并将 Handler 下拉列表从 Vim 切换到 IDE。

回答by Kshetra Mohan Prusty

I have faced the same issue. Please navigate as below to make the ctrl, alt work as expected:

我遇到了同样的问题。请按如下方式导航以使 ctrl、alt 按预期工作:

file >> setting >> keymap >> change to XWin

文件>>设置>>键盘映射>>更改为XWin

Hope this helps :)

希望这可以帮助 :)

回答by casjorge

I entered to File-Settings-Keymap and then I changed keymap version from existing to VisualStudio and it started to work correctly.

我进入了 File-Settings-Keymap,然后我将键盘映射版本从现有更改为 VisualStudio,它开始正常工作。

回答by amaralbf

Please, take a look at this question(worked for me in Ubuntu 16.04).

请看一下这个问题(在 Ubuntu 16.04 中对我有用)。

In my case, some PyCharm shortcuts were being shadowed by Ubuntu shortcuts, such as Ctrl+Alt+S, which opens the Settings window on PyCharm, but corresponds to the 'Toggle shaded state' shortcut on Ubuntu.

就我而言,某些 PyCharm 快捷方式被 Ubuntu 快捷方式遮蔽,例如Ctrl+ Alt+ S,它在 PyCharm 上打开“设置”窗口,但对应于 Ubuntu 上的“切换阴影状态”快捷方式。

I simply disabled the Ubuntu shortcut and the corresponding PyCharm shortcut worked like a Charm (pun intended).

我只是禁用了 Ubuntu 快捷方式,相应的 PyCharm 快捷方式就像一个 Charm(双关语)。

回答by faezehK

If you have installed Vim emulator, make sure it's not interfering with IDE shortcuts.

如果您已安装Vim 模拟器,请确保它不会干扰IDE 快捷方式

  1. Go to settings-> Vim emulation
  2. Then assign IDEor Vimto any of the shortcuts you want.
  1. 转到设置-> Vim 仿真
  2. 然后将IDEVim分配给您想要的任何快捷方式。

回答by Vivek Somvanshi

In case you are using Ubuntu, disable Vim Emulator in pyCharm:

如果您使用的是 Ubuntu,请在 pyCharm 中禁用 Vim 模拟器:

Tools > Vim Emulator

工具 > Vim 模拟器