alacritty: Ctrl+q not working

Which operating system does the issue occur on? macOS

Ctrl+q is not working unless I add this line to key_bindings:

- { key: Q, mods: Control, chars: "\x11" }

Other Ctrl keys seem working with default key_bindings config.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 30
  • Comments: 21 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Same with me, i use ctrl + q for tmux prefix

Same problem for me on maxOS 10.13.6 with Alacritty(master branch b41c6b736d67d61e92b174dfea58ae46813934cd) above v0.2.1

- { key: Q, mods: Control, chars: "\x11" }

solved my problem

{ key: Q, mods: Control, chars: "\x11" } works here 👍

Same problem here after just upgrading to newest version of Alacritty.

Fix was reverted upstream due to other bugs caused by it.

It sends it one Ctrl+Q if I press Ctrl+Q twice in a row (haven’t tested if there’s a timeout).

Created log file at "/var/folders/31/l7xdkf4d04x2xdh52wm93fjwc6cznp/T/Alacritty-25902.log"
[2019-11-06 14:47] [INFO] Welcome to Alacritty
[2019-11-06 14:47] [INFO] Configuration loaded from "/Users/jerric/.config/alacritty/alacritty.yml"
[2019-11-06 14:47] [INFO] Device pixel ratio: 2
[2019-11-06 14:47] [INFO] Initializing glyph cache...
[2019-11-06 14:47] [INFO] ... finished initializing glyph cache in 0.032977144s
[2019-11-06 14:47] [INFO] Width: 3360, Height: 2010
[2019-11-06 14:47] [INFO] Cell Size: 19 x 37
[2019-11-06 14:47] [INFO] Padding: 0 x 0
[2019-11-06 14:47] [INFO] PTY Dimensions: Line(54) x Column(176)
[2019-11-06 14:47] [INFO] Initialisation complete
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: HiDpiFactorChanged(2.0) }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: Resized(LogicalSize { width: 1024.0, height: 768.0 }) }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: Resized(LogicalSize { width: 1680.0, height: 1005.0 }) }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: Moved(LogicalPosition { x: 0.0, y: 23.0 }) }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: Refresh }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: Focused(true) }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: CursorEntered { device_id: DeviceId(DeviceId) } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: CursorMoved { device_id: DeviceId(DeviceId), position: LogicalPosition { x: 12.26171875, y: -8.296875 }, modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: CursorEntered { device_id: DeviceId(DeviceId) } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: CursorMoved { device_id: DeviceId(DeviceId), position: LogicalPosition { x: 12.26171875, y: -8.296875 }, modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } }
[2019-11-06 14:47] [INFO] glutin event: Awakened
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 62, state: Pressed, virtual_keycode: Some(RControl), modifiers: ModifiersState { shift: false, ctrl: true, alt: false, logo: false } } } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 12, state: Pressed, virtual_keycode: Some(Q), modifiers: ModifiersState { shift: false, ctrl: true, alt: false, logo: false } } } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 12, state: Released, virtual_keycode: Some(Q), modifiers: ModifiersState { shift: false, ctrl: true, alt: false, logo: false } } } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: KeyboardInput { device_id: DeviceId(DeviceId), input: KeyboardInput { scancode: 62, state: Released, virtual_keycode: Some(RControl), modifiers: ModifiersState { shift: false, ctrl: false, alt: false, logo: false } } } }
[2019-11-06 14:47] [INFO] glutin event: WindowEvent { window_id: WindowId(Id(140363283072720)), event: CloseRequested }
[2019-11-06 14:47] [INFO] Goodbye

This is what I get if I only click ctrl+q once.