Skip to content

macOS conflicting system keyboard shortcut #8223

@SebDominguez

Description

@SebDominguez

On my system, pressing Ctrl + Shift + Space doesn't enable Vi Mode.

BUT

If I keep the Space key pressed, after 1 second, Vi Mode will start flashing on and off.

System

OS: macOS
Version: alacritty 0.13.2 (bb8ea18)

I figured out that this is somehow caused by the system keyboard shortcut "Select next input method," which is mapped by default to Ctrl + Space.

Capture d’écran 2024-10-09 à 12 14 23

Logs

Font/Terminal size: alacritty -vv
Keyboard and bindings: alacritty --print-events

When I let go of Space after Ctrl Shift

[34.155457114s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[34.155536121s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT), pressed_mods: ModifiersKeys(LSHIFT) }) }
[34.155585490s] [INFO ] [alacritty] winit event: AboutToWait
[35.010694633s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 149630, tv_nsec: 328961910 }, requested_resume: None })
[35.011027251s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[35.011081352s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL), pressed_mods: ModifiersKeys(LSHIFT | LCONTROL) }) }
[35.011109942s] [INFO ] [alacritty] winit event: AboutToWait
[36.330820906s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 149631, tv_nsec: 184393887 }, requested_resume: None })
[36.331523354s] [INFO ] [alacritty] winit event: AboutToWait
[36.403020403s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 149632, tv_nsec: 504705162 }, requested_resume: None })
[36.403418659s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: None, location: Standard, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[36.403481121s] [INFO ] [alacritty] winit event: AboutToWait
[37.130798540s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 149632, tv_nsec: 576627291 }, requested_resume: None })
[37.131131655s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[37.131191550s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: ModifiersChanged(Modifiers { state: ModifiersState(CONTROL), pressed_mods: ModifiersKeys(LCONTROL) }) }
[37.131222532s] [INFO ] [alacritty] winit event: AboutToWait
[37.174973777s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 149633, tv_nsec: 304494396 }, requested_resume: None })
[37.179941515s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[37.180072715s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140190257721776)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[37.180118605s] [INFO ] [alacritty] winit event: AboutToWait

When I held the Space key down:

[63.796658788s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[63.796744841s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT), pressed_mods: ModifiersKeys(LSHIFT) }) }
[63.796791903s] [INFO ] [alacritty] winit event: AboutToWait
[65.587958238s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150370, tv_nsec: 203615271 }, requested_resume: None })
[65.594249878s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Pressed, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[65.594372862s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT | CONTROL), pressed_mods: ModifiersKeys(LSHIFT | LCONTROL) }) }
[65.594456396s] [INFO ] [alacritty] winit event: AboutToWait
[66.831169059s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150372, tv_nsec: 1188816 }, requested_resume: None })
[66.831652516s] [INFO ] [alacritty] winit event: AboutToWait
[67.333192607s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 238245127 }, requested_resume: None })
[67.333943776s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.334024104s] [INFO ] [alacritty] winit event: AboutToWait
[67.334354090s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 740871287 }, requested_resume: None })
[67.334397128s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.334428476s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.336886941s] [INFO ] [alacritty] winit event: AboutToWait
[67.337000477s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 743515026 }, requested_resume: None })
[67.337055916s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.337096420s] [INFO ] [alacritty] winit event: AboutToWait
[67.417049514s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 743676652 }, requested_resume: None })
[67.417616297s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.417697220s] [INFO ] [alacritty] winit event: AboutToWait
[67.417905481s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 824422381 }, requested_resume: None })
[67.417947439s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.417977844s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(MouseCursorDirty) })
[67.418007974s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.418962434s] [INFO ] [alacritty] winit event: AboutToWait
[67.419033088s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 825549581 }, requested_resume: None })
[67.419085526s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.419119911s] [INFO ] [alacritty] winit event: AboutToWait
[67.501326207s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 825671332 }, requested_resume: None })
[67.502002117s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.502078756s] [INFO ] [alacritty] winit event: AboutToWait
[67.502405442s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 908923132 }, requested_resume: None })
[67.502447276s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.502478046s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.503687265s] [INFO ] [alacritty] winit event: AboutToWait
[67.503795530s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 910309866 }, requested_resume: None })
[67.503856590s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.503888829s] [INFO ] [alacritty] winit event: AboutToWait
[67.583508262s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 910439392 }, requested_resume: None })
[67.583983383s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.584049250s] [INFO ] [alacritty] winit event: AboutToWait
[67.584220582s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 990739224 }, requested_resume: None })
[67.584257055s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.584284041s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(MouseCursorDirty) })
[67.584305866s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.585216669s] [INFO ] [alacritty] winit event: AboutToWait
[67.585302060s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 991818462 }, requested_resume: None })
[67.585363395s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.585395044s] [INFO ] [alacritty] winit event: AboutToWait
[67.669428749s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150373, tv_nsec: 991942973 }, requested_resume: None })
[67.670099913s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.670175802s] [INFO ] [alacritty] winit event: AboutToWait
[67.670505207s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 77022906 }, requested_resume: None })
[67.670546207s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.670579530s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.671770401s] [INFO ] [alacritty] winit event: AboutToWait
[67.671881757s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 78397931 }, requested_resume: None })
[67.671930657s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.671963447s] [INFO ] [alacritty] winit event: AboutToWait
[67.753738253s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 78513796 }, requested_resume: None })
[67.754284184s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.754348167s] [INFO ] [alacritty] winit event: AboutToWait
[67.754543482s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 161061443 }, requested_resume: None })
[67.754582074s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.754611978s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(MouseCursorDirty) })
[67.754638467s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.755647530s] [INFO ] [alacritty] winit event: AboutToWait
[67.755764035s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 162276654 }, requested_resume: None })
[67.755836736s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.755872488s] [INFO ] [alacritty] winit event: AboutToWait
[67.837734441s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 162426029 }, requested_resume: None })
[67.838364339s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: Some(" "), location: Standard, state: Pressed, repeat: true, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.838437432s] [INFO ] [alacritty] winit event: AboutToWait
[67.838766570s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 245284340 }, requested_resume: None })
[67.838806900s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Terminal(CursorBlinkingChange) })
[67.838838792s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: RedrawRequested }
[67.840036853s] [INFO ] [alacritty] winit event: AboutToWait
[67.840138094s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 246654941 }, requested_resume: None })
[67.840197741s] [INFO ] [alacritty] winit event: UserEvent(Event { window_id: Some(WindowId(WindowId(140265355633104))), payload: Frame })
[67.840230025s] [INFO ] [alacritty] winit event: AboutToWait
[67.847867775s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 246780307 }, requested_resume: None })
[67.848297291s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(Space), logical_key: Named(Space), text: None, location: Standard, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: Some("\0"), key_without_modifiers: Named(Space) } }, is_synthetic: false } }
[67.848390349s] [INFO ] [alacritty] winit event: AboutToWait
[67.875614119s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 254945596 }, requested_resume: None })
[67.881713925s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ControlLeft), logical_key: Named(Control), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Control) } }, is_synthetic: false } }
[67.881841269s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: ModifiersChanged(Modifiers { state: ModifiersState(SHIFT), pressed_mods: ModifiersKeys(LSHIFT) }) }
[67.881896394s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: KeyboardInput { device_id: DeviceId(DeviceId), event: KeyEvent { physical_key: Code(ShiftLeft), logical_key: Named(Shift), text: None, location: Left, state: Released, repeat: false, platform_specific: KeyEventExtra { text_with_all_modifiers: None, key_without_modifiers: Named(Shift) } }, is_synthetic: false } }
[67.884258562s] [INFO ] [alacritty] winit event: WindowEvent { window_id: WindowId(WindowId(140265355633104)), event: ModifiersChanged(Modifiers { state: ModifiersState(0x0), pressed_mods: ModifiersKeys(0x0) }) }
[67.884391094s] [INFO ] [alacritty] winit event: AboutToWait
[67.884885772s] [INFO ] [alacritty] winit event: NewEvents(WaitCancelled { start: Instant { tv_sec: 150374, tv_nsec: 291389560 }, requested_resume: None })
``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions