{"action":"created","issue":{"url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/213","labels_url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/213/comments","events_url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/213/events","html_url":"https://github.com/tmk/tmk_keyboard/issues/213","id":75820990,"number":213,"title":"HHKB Pro 2 Type-S RN42 Bluetooth mode does not work with Karabiner","user":{"login":"ylorn","id":1502810,"avatar_url":"https://avatars.githubusercontent.com/u/1502810?v=3","gravatar_id":"","url":"https://api.github.com/users/ylorn","html_url":"https://github.com/ylorn","followers_url":"https://api.github.com/users/ylorn/followers","following_url":"https://api.github.com/users/ylorn/following{/other_user}","gists_url":"https://api.github.com/users/ylorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ylorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylorn/subscriptions","organizations_url":"https://api.github.com/users/ylorn/orgs","repos_url":"https://api.github.com/users/ylorn/repos","events_url":"https://api.github.com/users/ylorn/events{/privacy}","received_events_url":"https://api.github.com/users/ylorn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T02:56:31Z","updated_at":"2015-05-13T09:46:46Z","closed_at":null,"body":"I want to achieve this effect on my mac:\r\n\r\n- 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.\r\n- When I press the right shift (hold without releasing it), it will still work as a *shift* modifier key.\r\n\r\nThis is my configuration for Karabiner: https://gist.github.com/ylorn/43b589daf6d621a7fc47\r\n\r\nI 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.\r\n\r\nI 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:\r\n![](http://cl.ly/axVl/Screen%20Shot%202015-05-12%20at%206.37.29%20PM.png)\r\nHowever, when I connect it to my mac using bluetooth, it looks not right:\r\n![](http://cl.ly/axIY/Screen%20Shot%202015-05-12%20at%206.37.50%20PM.png)\r\n\r\nAnd I also tried to achieve this by custom the keymap. \r\n\r\n- First, I replace the right shift with FN3. And I add a fn function:\r\n`[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.\r\n\r\n- 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. \r\n\r\n- Third, I tried this function: \r\n```c\r\n [3] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_FN4),\r\n [4] = ACTION_MODS_KEY(MOD_LGUI, KC_SPACE),\r\n```\r\nBut it can only work as a modifier key.\r\n\r\n\r\nSo 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."},"comment":{"url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/comments/101596731","html_url":"https://github.com/tmk/tmk_keyboard/issues/213#issuecomment-101596731","issue_url":"https://api.github.com/repos/tmk/tmk_keyboard/issues/213","id":101596731,"user":{"login":"ylorn","id":1502810,"avatar_url":"https://avatars.githubusercontent.com/u/1502810?v=3","gravatar_id":"","url":"https://api.github.com/users/ylorn","html_url":"https://github.com/ylorn","followers_url":"https://api.github.com/users/ylorn/followers","following_url":"https://api.github.com/users/ylorn/following{/other_user}","gists_url":"https://api.github.com/users/ylorn/gists{/gist_id}","starred_url":"https://api.github.com/users/ylorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ylorn/subscriptions","organizations_url":"https://api.github.com/users/ylorn/orgs","repos_url":"https://api.github.com/users/ylorn/repos","events_url":"https://api.github.com/users/ylorn/events{/privacy}","received_events_url":"https://api.github.com/users/ylorn/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T09:46:46Z","updated_at":"2015-05-13T09:46:46Z","body":"Just tried with right alt. \r\nNope.\r\nStill, works with internal keyboard and HHKB USB mode, but not with the bluetooth mode.\r\n\r\nJust out of curiosity, do you use Karabiner as well? Have you ever encounter such problem?"}}