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

Caps lock light not working with chords #1364

Open
2 tasks done
thomastthai opened this issue Nov 19, 2024 · 3 comments
Open
2 tasks done

Caps lock light not working with chords #1364

thomastthai opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.

Comments

@thomastthai
Copy link
Contributor

Requirements

Describe the bug

I've set my configuration so that pressing the chord left-shift + right-shift activates the caps lock on or off. While that works as intended, the caps lock LED light doesn't light up when the caps lock is on.

A similar setup in Karabiner-Elements turns on the caps lock LED when it's on.

Relevant kanata config

(defchordsv2
  (lsft rsft) caps 300 all-released ()
)

To Reproduce

  1. Include the chord above
  2. Press left-shift + right-shift

Expected behavior

The caps lock LED lights up when the caps lock is active.

Kanata version

Kanata latest as of commit fc1b95d

Debug logs

No response

Operating system

macOS Sequoia 15.1 (Apple Silicon)

Additional context

No response

@thomastthai thomastthai added the bug Something isn't working label Nov 19, 2024
@jtroo jtroo added the macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it. label Nov 20, 2024
@argenkiwi
Copy link

I am running Kanata v1.17.0 on MacOS Sequoia v15.2 and also observed the Caps Lock light won't turn on and off when activating Caps Lock. Furthermore, I seem to need to double tap Caps Lock to activate it when using tap-hold (or one of its variants) on it (e.g, caps (tap-hold-press-timeout 200 500 caps (layer-while-held extend) caps)).

@gitraar
Copy link

gitraar commented Dec 19, 2024

I am running Kanata v1.17.0 on MacOS Sequoia v15.2 and also observed the Caps Lock light won't turn on and off when activating Caps Lock. Furthermore, I seem to need to double tap Caps Lock to activate it when using tap-hold (or one of its variants) on it (e.g, caps (tap-hold-press-timeout 200 500 caps (layer-while-held extend) caps)).

Since Sequoia (I think), macOS only activates Caps Lock when the key is pressed for more than 100 ms (or so I read somewhere).

Try changing the line you posted to something like:
caps (tap-hold-press-timeout 200 500 (one-shot-press 150 caps) (layer-while-held extend) (one-shot-press 150 caps))

This makes kanata output the caps key for 150 ms and should activate your Caps Lock.

As for the LED not activating, I have the same problem and haven't yet found a way to solve it.

@argenkiwi
Copy link

Thanks for that! I have only recently returned to MacOS and was unaware of this intentional delay. It seems there is no easy way to disable it. What a pain...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working macos Issue pertains to macos; jtroo has no macOS devices and does not maintain the support for it.
Projects
None yet
Development

No branches or pull requests

4 participants