我已经在代码编辑器中使用 Ctrl+Shift+Alt+Left/Right 一段时间了,大概一两周前,经过一些更新后,这些键绑定现在无法再到达我的代码编辑器或任何其他程序,但它也没有做任何事情,它没有切换工作区或任何东西,我不确定为什么,因为当查看输出时gsettings list-recursively org.gnome.desktop.wm.keybindings | sort | more
没有使用这个键组合的快捷方式,所以我想知道是否还有其他地方可以寻找 gnome 使用的键绑定或其他任何可以阻止它们到达任何程序的东西。
我正在使用 Ubuntu 20.10
我当前的键绑定基于我之前列出的命令的输出:
org.gnome.desktop.wm.keybindings activate-window-menu ['<Alt>space']
org.gnome.desktop.wm.keybindings always-on-top @as []
org.gnome.desktop.wm.keybindings begin-move ['<Alt>F7']
org.gnome.desktop.wm.keybindings begin-resize ['<Alt>F8']
org.gnome.desktop.wm.keybindings close ['<Alt>F4']
org.gnome.desktop.wm.keybindings cycle-group ['<Alt>F6']
org.gnome.desktop.wm.keybindings cycle-group-backward ['<Shift><Alt>F6']
org.gnome.desktop.wm.keybindings cycle-panels-backward ['<Shift><Control><Alt>Es
cape']
org.gnome.desktop.wm.keybindings cycle-panels ['<Control><Alt>Escape']
org.gnome.desktop.wm.keybindings cycle-windows ['<Alt>Escape']
org.gnome.desktop.wm.keybindings cycle-windows-backward ['<Shift><Alt>Escape']
org.gnome.desktop.wm.keybindings lower @as []
org.gnome.desktop.wm.keybindings maximize-horizontally @as []
org.gnome.desktop.wm.keybindings maximize ['<Super>Up']
org.gnome.desktop.wm.keybindings maximize-vertically @as []
org.gnome.desktop.wm.keybindings minimize ['<Super>h']
org.gnome.desktop.wm.keybindings move-to-center @as []
org.gnome.desktop.wm.keybindings move-to-corner-ne @as []
org.gnome.desktop.wm.keybindings move-to-corner-nw @as []
org.gnome.desktop.wm.keybindings move-to-corner-se @as []
org.gnome.desktop.wm.keybindings move-to-corner-sw @as []
org.gnome.desktop.wm.keybindings move-to-monitor-down ['<Primary><Super>Down']
org.gnome.desktop.wm.keybindings move-to-monitor-left ['<Primary><Super>Left']
org.gnome.desktop.wm.keybindings move-to-monitor-right ['<Primary><Super>Right']
org.gnome.desktop.wm.keybindings move-to-monitor-up ['<Primary><Super>Up']
org.gnome.desktop.wm.keybindings move-to-side-e @as []
org.gnome.desktop.wm.keybindings move-to-side-n @as []
org.gnome.desktop.wm.keybindings move-to-side-s @as []
org.gnome.desktop.wm.keybindings move-to-side-w @as []
org.gnome.desktop.wm.keybindings move-to-workspace-10 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-11 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-12 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-1 ['<Super><Shift>Home']
org.gnome.desktop.wm.keybindings move-to-workspace-2 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-3 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-4 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-5 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-6 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-7 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-8 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-9 @as []
org.gnome.desktop.wm.keybindings move-to-workspace-down @as []
org.gnome.desktop.wm.keybindings move-to-workspace-last @as []
org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Control><Alt><Super>Left']
org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Control><Alt><Super>Right']
org.gnome.desktop.wm.keybindings move-to-workspace-up @as []
org.gnome.desktop.wm.keybindings panel-main-menu @as []
org.gnome.desktop.wm.keybindings panel-run-dialog ['<Super>R']
org.gnome.desktop.wm.keybindings raise @as []
org.gnome.desktop.wm.keybindings raise-or-lower @as []
org.gnome.desktop.wm.keybindings set-spew-mark @as []
org.gnome.desktop.wm.keybindings show-desktop ['']
org.gnome.desktop.wm.keybindings switch-applications @as []
org.gnome.desktop.wm.keybindings switch-applications-backward @as []
org.gnome.desktop.wm.keybindings switch-group-backward ['<Shift><Super>Above_Tab', '<Shift><Alt>Above_Tab']
org.gnome.desktop.wm.keybindings switch-group ['<Super>Above_Tab', '<Alt>Above_Tab']
org.gnome.desktop.wm.keybindings switch-input-source-backward ['<Shift><Super>space', '<Shift>XF86Keyboard']
org.gnome.desktop.wm.keybindings switch-input-source ['<Super>space', 'XF86Keyboard']
org.gnome.desktop.wm.keybindings switch-panels @as []
org.gnome.desktop.wm.keybindings switch-panels-backward @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-10 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-11 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-12 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-1 ['<Super><Alt>1']
org.gnome.desktop.wm.keybindings switch-to-workspace-2 ['<Super><Alt>2']
org.gnome.desktop.wm.keybindings switch-to-workspace-3 ['<Super><Alt>3']
org.gnome.desktop.wm.keybindings switch-to-workspace-4 ['<Super><Alt>4']
org.gnome.desktop.wm.keybindings switch-to-workspace-5 ['<Super><Alt>5']
org.gnome.desktop.wm.keybindings switch-to-workspace-6 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-7 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-8 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-9 @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-down @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-last @as []
org.gnome.desktop.wm.keybindings switch-to-workspace-left ['<Control><Alt>Left']
org.gnome.desktop.wm.keybindings switch-to-workspace-right ['<Control><Alt>Right']
org.gnome.desktop.wm.keybindings switch-to-workspace-up @as []
org.gnome.desktop.wm.keybindings switch-windows ['<Alt>Tab']
org.gnome.desktop.wm.keybindings switch-windows-backward ['<Shift><Alt>Tab']
org.gnome.desktop.wm.keybindings toggle-above @as []
org.gnome.desktop.wm.keybindings toggle-fullscreen @as []
org.gnome.desktop.wm.keybindings toggle-maximized ['<Alt>F10']
org.gnome.desktop.wm.keybindings toggle-on-all-workspaces @as []
org.gnome.desktop.wm.keybindings toggle-shaded @as []
org.gnome.desktop.wm.keybindings unmaximize ['<Super>Down', '<Alt>F5']
答案1
Ubuntu 将此组合键绑定到“切换工作区”。从 Ubuntu 18.04 开始,您需要使用命令行来更改快捷方式,因为 Ubuntu 键盘设置 GUI 可能不会显示此选项。要完全删除有问题的快捷方式,允许 IntelliJ 使用它们,以下命令对我有用:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]
如果您想恢复快捷方式,请使用:
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-left
gsettings reset org.gnome.desktop.wm.keybindings switch-to-workspace-right
此外,您的 IntelliJ 安装可能设置为 GNOME 键盘映射的默认设置,而不是您习惯的键盘映射。这将映射导航-向前和导航-落后快捷键改为Ctrl
+ Alt
+ Windows Key
+ Left/Right
。在 下File > Settings > Keymap
,您可以修改这些快捷键的组合键,也可以完全切换到默认的键盘映射。