Skip to content

HHKB Pro 2 Type-S RN42 Bluetooth mode does not work with Karabiner #213

Closed
@ylorn

Description

I want to achieve this effect on my mac:

  • When I tap on the right shift (press and release quickly), it will simulate a Command + Space to change the input source from the current one to the previous one.
  • When I press the right shift (hold without releasing it), it will still work as a shift modifier key.

This is my configuration for Karabiner: https://gist.github.com/ylorn/43b589daf6d621a7fc47

I tried this file with the internal keyboard of my MacBook Pro, it works just as I expected; I tried this file with the HHKB, with your bluetooth board in it, and connect it to my mac using a USB cable, it still works just as I expected; However, when I disconnect the USB cable and turn on the bluetooth switch, it surely does work as a shift modifier key, but not the simulation of Command + Space.

I was wondering if there is anything to do with the Vender ID and Product ID? Because when I connect it using a USB cable, it shows as a keyboard and has a proper Vender ID and Product ID, just like the image below:

However, when I connect it to my mac using bluetooth, it looks not right:

And I also tried to achieve this by custom the keymap.

  • First, I replace the right shift with FN3. And I add a fn function:
    [3] = ACTION_MODS_KEY(MOD_LGUI, KC_SPACE). It surely do the work of Command + Space, but lose the function of shift as a modifier key.
  • Second, I use the following line as a fn function: [3] = ACTION_MODS_TAP_KEY(MOD_RSFT, ACTION_MODS_KEY(MOD_LGUI, KC_SPACE)). This fails on both purposes.
  • Third, I tried this function:
 [3] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_FN4),
 [4] = ACTION_MODS_KEY(MOD_LGUI, KC_SPACE),

But it can only work as a modifier key.

So these are all I've tried, would you please give me some guide on how to make HHKB work with Karabiner on bluetooth mode? Or if there is any other workaround, please let me know.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions