Adv360-Pro-ZMK: F13-F24 not working on MacOS.

Expected Behavior

A key assigned as &kp F13 in adv360.keymap should output F13 and each subsequent function key up to and including F24 should behave the same way on MacOS. These are supported by both MacOS and ZMK.

Current Behavior

The current behavior is that these keys produce no output whatsoever - It is not even registering as any keypress in MacOS. These keys are recognized by the operating system on other keyboards, including my modified Kinesis Advantage with QMK support. I’m not sure if these same keys produce any output on Windows or Linux as I don’t currently have access to a running machine with those on it, though they may be affected as well. None of these register a keypress at all in MacOS.

I personally use at least some of these function keys extremely regularly. For example, I use F17 as a keybinding to toggle Alfred (a spotlight alternative) and F19 to toggle between two different language input modes.

Steps to Reproduce

  1. Assign any key on any layer to a Function key between F13-F24. According to ZMK’s docs, the syntax should be written as&kp F13[^1] in the adv360.keymap file for normal keypress. My current function layer keymap is:
layer_fn {
            bindings = <
 &kp F1  &kp F2      &kp F3            &kp F4      &kp F5  &kp F6            &tog 1   &mo 3  &kp F7  &kp F8  &kp F9  &kp F10  &kp F11  &kp F12
 &kp F13 &kp F14     &kp F15           &kp F16     &kp F17 &kp F18           &none   &none   &kp F19 &kp F20 &kp F21 &kp F22  &kp F23  &kp F24
 &trans  &trans  &kp C_PREV  &kp C_PLAY_PAUSE  &kp C_NEXT  &trans             &none  &trans  &trans                   &trans   &trans    &none  &kp LEFT &kp DOWN &kp UP  &kp RIGHT &C_VOL_UP &trans
 &trans  &trans      &trans            &trans      &trans  &trans             &none   &none  &trans   &none   &none   &trans    &none    &none  &trans   &trans   &trans  &trans    &C_VOL_DN &trans
 &trans  &trans      &trans            &trans      &trans  &trans            &trans  &trans  &trans  &trans  &trans   &trans   &trans   &trans  &trans   &trans
            >;

Everything except for the F13-F24 functions as expected and there is no errors on build using this keymap.

  1. Build and Flash firmware onto device.
  2. Attempt to type the function key. An application like Karabiner’s event viewer [^2] allows you to view input events on MacOS. Alternatively, You can attempt to bind the key to something in the keyboard shortcuts panel in System Preferences. With a function F13-F24 key, it will correctly set the keybinding for the keyboard shortcut. As it stands, it continues waiting for a valid keypress.

[^1]: https://zmk.dev/docs/codes#f-keys - one can intuit from the default keybindings that it should be possible to assign F13-F24 the same exact way as F1-F12 (which work fine), hence &kp F13.

[^2]: https://karabiner-elements.pqrs.org/ - I’ve bypassed karabiner entirely so it should not be causing the issue.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 23 (3 by maintainers)

Commits related to this issue

Most upvoted comments

On the latest update (https://github.com/ReFil/zmk/commit/169aa900f4a9777df6f9d2a560eccd841d3444c7) this should be fixed. You might need to unpair and repair to the host computer. This was reverted as it caused input issues, We hope to have them solved soon and be able to finalise this

6 key rollover.

Looks like there is a conflict with NKRO at the moment. Commenting out that config line makes F13-F24 work again. We are investigating a fix. Sorry!