Skip to content

Hotkey remapped as caps lock in raycast doesn't trigger #895

@tom-sherman

Description

@tom-sherman

livesplit-hotkey v0.8.0, macOS Tahoe 26.2

I have Caps Lock bound to my hyper key, Ctrl + Opt + Cmd, using the Raycast hyper key setting: https://manual.raycast.com/hyperkey

I am able to get the callback to trigger when pressing those keys manually, but not when pressing the Caps Lock key that is rebound to those keys via raycast. This is specific to the caps lock key, if I rebind another key to Ctrl + Opt + Cmd then it works fine.

Here's is the reproduction code:

use livesplit_hotkey::{Hook, Hotkey, KeyCode};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let hook = Hook::new()?;
    let hyper_key_a = Hotkey {
        key_code: KeyCode::KeyA,
        modifiers: livesplit_hotkey::Modifiers::META
            | livesplit_hotkey::Modifiers::ALT
            | livesplit_hotkey::Modifiers::CONTROL,
    };
    hook.register(hyper_key_a, || {
        println!("Hyper + A was pressed!");
    })?;
    loop {
        std::thread::sleep(std::time::Duration::from_secs(1));
    }
}

And of course you'll need to have raycast running with kyperkey bound to caps lock.

I can replicate this with all 4 consume settings options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions