5

Ctrl-left and Ctrl-right Not Working in macOS?

 1 year ago
source link: https://jdhao.github.io/2022/08/20/ctrl-left-right-not-work-mac/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Ctrl-left and Ctrl-right Not Working in macOS?

2022-08-20 187 words 1 min read 8 times read

Recently, when I try to use Ctrl-left and Ctrl-right in Neovim, I found that they are not received by Neovim. I thought this is a Neovim issue. However, when I test these two shortcuts using cat in the terminal (I tried both Kitty and wezterm), it does not work either.

I asked this question in Vim_zh telegraph group1, and someone reminded me that it may be related to macOS mapping these keys for mission control2. There are multiple similar posts on the Internet.

Here is what is working for me on macOS Monterey (version 12.5.1):

  • Open System Preferences --> Keyboard
  • Go to the shortcuts tab, and click Mission Control on the left list
  • Under Mission Control menu on the right, uncheck Move left a space and Move right a space.

Now these two shortcuts will be freed.

BTW, if you like to switch between different desktops, you can use three finger swipes on the touch pad. It works better than using key shortcuts.


  1. This is a telegraph group for Chinese Vim/Nvim users, with a lot of profession devs. ↩︎

  2. Mission control is basically multiple desktops, see also https://en.wikipedia.org/wiki/Mission_Control_(macOS) ↩︎

Author jdhao

LastMod

2022-08-20

License CC BY-NC-ND 4.0

Reward

Next

Powered by Hugo

|

Theme - Even

site pv: 3385361 | site uv: 2548165

© 2017 - 2022jdhao


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK