简体   繁体   English

在 Parallels Desktop 的 Ubuntu 上运行的 IntelliJ 中使用 MacOS 快捷方式

[英]Using MacOS shortcuts in IntelliJ running on Ubuntu in Parallels Desktop

I have Ubuntu 18.04 running in Parallels Desktop environment on my Mac (MacOS Catalina).我在 Mac (MacOS Catalina) 上的 Parallels Desktop 环境中运行 Ubuntu 18.04。 IntelliJ is installed in this Ubuntu environment. IntelliJ 安装在此 Ubuntu 环境中。

I want to use MacOS layout in my IntelliJ.我想在我的 IntelliJ 中使用 MacOS 布局。 Under Ubuntu, after selecting "macOS" keyboard layout, shortcuts with cmd key are using Meta key.在 Ubuntu 下,选择“macOS”键盘布局后,带有 cmd 键的快捷方式使用 Meta 键。

I installed Gnome Tweaks and enabled Win->Meta mapping.我安装了 Gnome Tweaks 并启用了 Win->Meta 映射。 Shortcuts like Meta-B work - they're not used by the system.像 Meta-B 这样的快捷方式有效 - 系统不使用它们。 However, many others don't.然而,许多其他人没有。 Some of them are listed in Settings->Keyboards (ie Super-S), some of them are intercepted elsewhere (ie Super-O):有的列在Settings->Keyboards(即Super-S),有的在别处截取(即Super-O):

org.cinnamon.desktop.keybindings.media-keys video-rotation-lock ['<Super>o']

Why after enabling Win->Meta mapping the cmd key is still treated as Super by the system?为什么启用 Win->Meta 映射后,系统仍将 cmd 键视为 Super?

Is there any better way of dealing with this issue other than unbinding all of these keymappings?除了解除所有这些键映射的绑定之外,还有没有更好的方法来处理这个问题?

Apparently, looks like Gnome Tweaks makes changes using setxkbmap - I also trying playing with mod4 mapping in xmodmap, didn't help much.显然,看起来 Gnome Tweaks 使用 setxkbmap 进行了更改 - 我也尝试在 xmodmap 中使用 mod4 映射,但没有太大帮助。

Any suggestions?有什么建议? Thanks.谢谢。

不幸的是,没有通过调优IDE来解决这个问题的好方法,但是您可以尝试制作Linux版本的macOS键盘映射插件(以插件源为例,或任何键盘映射插件的公共源)。

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

相关问题 如何通过 macOS 上的 Parallels Desktop 在“Mac 上的 Ubuntu”上安装的 ROS 上显示 velodyne 点? - how to display velodyne points on ROS installed on “Ubuntu on Mac” via Parallels Desktop on macOS? 在安装了Parallels的MacOS上运行WebStorm中的应用程序 - Running an app in WebStorm on MacOS with Parallels installed Parallels-MacOS主机和来宾-如何允许绕过某些快捷方式来托管OS - Parallels - MacOS host & guest - How to allow the bypassing of certain shortcuts to host os 视觉工作室运行桌面上的卷曲大括号mac - Curly braces in visual studio running desktop parallels mac 在Parallels Desktop上运行通过py2exe生成的.exe - Running .exe generated via py2exe on Parallels Desktop 从节点脚本运行 MacOS 快捷方式 shell 命令 - Running MacOS shortcuts shell command from node script Swift 中的 macOS 键盘快捷键 - macOS Keyboard Shortcuts in Swift Macos x应用程序的快捷方式 - Macos x Shortcuts of a Application 连接到并行VM中运行的SQLServer - Connect to SQLServer running in a parallels VM Linux作为MacOS X上的访客:VirtualBox还是Parallels? - Linux as a guest on MacOS X: VirtualBox or Parallels?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM