Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl key not working on macos at all #4991

Closed
Flyingdot opened this issue Apr 20, 2021 · 8 comments
Closed

Ctrl key not working on macos at all #4991

Flyingdot opened this issue Apr 20, 2021 · 8 comments

Comments

@Flyingdot
Copy link

I am not able to use ctrl-key on my macOS installation at all. I tried it under different situations:

  • with and without tmux
  • fish and bash (with and without vim bindings)
  • with and without my alacritty.yml

On Linux it works without a problem.

System

OS: macOS (BigSur)
Version: alacritty 0.7.2

Logs

Relevant print-events log of pressing ctrl+c (full log attached)

[2021-04-20 11:43:11.480847000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 59, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[2021-04-20 11:43:11.561127000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 59, state: Released, virtual_keycode: Some(LControl), modifiers: (empty) }, is_synthetic: false } }
[2021-04-20 11:43:14.328316000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 59, state: Pressed, virtual_keycode: Some(LControl), modifiers: CTRL }, is_synthetic: false } }
[2021-04-20 11:43:14.524914000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 8, state: Pressed, virtual_keycode: Some(C), modifiers: CTRL }, is_synthetic: false } }
[2021-04-20 11:43:14.696313000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 8, state: Released, virtual_keycode: Some(C), modifiers: CTRL }, is_synthetic: false } }
[2021-04-20 11:43:14.787490000] [INFO ] [alacritty] glutin event: WindowEvent { window_id: WindowId(Id(140642032336816)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 59, state: Released, virtual_keycode: Some(LControl), modifiers: (empty) }, is_synthetic: false } }

alacritty-printevents.log

@chrisduerr
Copy link
Member

What are you expecting to happen?

@Flyingdot
Copy link
Author

Like

  • cancelling a process with ctrl+c
  • using ctrl+a as my tmux hotkey
  • ...

It's really like none of the shortcuts based on ctrl+something are working.

@chrisduerr
Copy link
Member

Could you try with an empty configuration file please?

@chrisduerr
Copy link
Member

Also do you use any form of special input handler on system level? Something like IME or window automation software?

@Flyingdot
Copy link
Author

I did tried it with an empty configuration, without any success.

But by closing like every application which could cause such a problem, I noticed that I am using a special keyboard-layout (https://github.com/xv0x7c0/osx-us-altgr-intl). When I switch my layout to default US international, it's working.

But still it's kind of strange, since I am using this layout for years and it does not cause any problems in any other application.

@chrisduerr
Copy link
Member

In that case this is somewhat of a duplicate of #458, though with third-party software/keymaps this is obviously a bit more complicated.

@adilw3nomad
Copy link

Screenshot 2022-05-18 at 16 43 12

This was tripping me up for a while too; make sure you turn off the mission control short cuts that use Control | ^

You can do this by going to System preferences -> Keyboard -> Shortcuts

@rigobot
Copy link

rigobot commented Sep 23, 2022

I did tried it with an empty configuration, without any success.

But by closing like every application which could cause such a problem, I noticed that I am using a special keyboard-layout (https://github.com/xv0x7c0/osx-us-altgr-intl). When I switch my layout to default US international, it's working.

But still it's kind of strange, since I am using this layout for years and it does not cause any problems in any other application.

Hello, did you fix this issue? I'm also using that keyboard layout and I noticed the same issue. Also with another terminal app by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants