core: Add keycode MACE and MACJ for macOS
Mac key 英数(eisuu) and かな(kana) send usage LANG2(0x91) and LANG1(0x90) respectively, and macOS uses them for English-Japanese input switching. This gives the usages aliase as MACE and MACJ. https://github.com/tmk/tmk_keyboard/wiki/FAQ-Keymap#japanese-jis-keys
This commit is contained in:
parent
c78992790e
commit
6795e8fc0e
2 changed files with 13 additions and 0 deletions
|
|
@ -353,8 +353,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define AC_RO ACTION_KEY(KC_INT1)
|
#define AC_RO ACTION_KEY(KC_INT1)
|
||||||
#define AC_KANA ACTION_KEY(KC_INT2)
|
#define AC_KANA ACTION_KEY(KC_INT2)
|
||||||
#define AC_JYEN ACTION_KEY(KC_INT3)
|
#define AC_JYEN ACTION_KEY(KC_INT3)
|
||||||
|
#define AC_JPY ACTION_KEY(KC_INT3)
|
||||||
#define AC_HENK ACTION_KEY(KC_INT4)
|
#define AC_HENK ACTION_KEY(KC_INT4)
|
||||||
#define AC_MHEN ACTION_KEY(KC_INT5)
|
#define AC_MHEN ACTION_KEY(KC_INT5)
|
||||||
|
#define AC_MACJ ACTION_KEY(KC_LANG1)
|
||||||
|
#define AC_MACE ACTION_KEY(KC_LANG2)
|
||||||
|
/* Korean specific */
|
||||||
|
#define AC_HAEN ACTION_KEY(KC_LANG1)
|
||||||
|
#define AC_HANJ ACTION_KEY(KC_LANG2)
|
||||||
/* Keypad */
|
/* Keypad */
|
||||||
#define AC_P1 ACTION_KEY(KC_KP_1)
|
#define AC_P1 ACTION_KEY(KC_KP_1)
|
||||||
#define AC_P2 ACTION_KEY(KC_KP_2)
|
#define AC_P2 ACTION_KEY(KC_KP_2)
|
||||||
|
|
@ -376,6 +382,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define AC_PPLS ACTION_KEY(KC_KP_PLUS)
|
#define AC_PPLS ACTION_KEY(KC_KP_PLUS)
|
||||||
#define AC_PEQL ACTION_KEY(KC_KP_EQUAL)
|
#define AC_PEQL ACTION_KEY(KC_KP_EQUAL)
|
||||||
#define AC_PENT ACTION_KEY(KC_KP_ENTER)
|
#define AC_PENT ACTION_KEY(KC_KP_ENTER)
|
||||||
|
/* Unix function key */
|
||||||
|
#define AC_EXEC ACTION_KEY(KC_EXECUTE)
|
||||||
|
#define AC_SLCT ACTION_KEY(KC_SELECT)
|
||||||
|
#define AC_AGIN ACTION_KEY(KC_AGAIN)
|
||||||
|
#define AC_PSTE ACTION_KEY(KC_PASTE)
|
||||||
/* Mousekey */
|
/* Mousekey */
|
||||||
#define AC_MS_U ACTION_MOUSEKEY(KC_MS_UP)
|
#define AC_MS_U ACTION_MOUSEKEY(KC_MS_UP)
|
||||||
#define AC_MS_D ACTION_MOUSEKEY(KC_MS_DOWN)
|
#define AC_MS_D ACTION_MOUSEKEY(KC_MS_DOWN)
|
||||||
|
|
|
||||||
|
|
@ -103,6 +103,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define KC_JPY KC_INT3
|
#define KC_JPY KC_INT3
|
||||||
#define KC_HENK KC_INT4
|
#define KC_HENK KC_INT4
|
||||||
#define KC_MHEN KC_INT5
|
#define KC_MHEN KC_INT5
|
||||||
|
#define KC_MACJ KC_LANG1
|
||||||
|
#define KC_MACE KC_LANG2
|
||||||
/* Korean specific */
|
/* Korean specific */
|
||||||
#define KC_HAEN KC_LANG1
|
#define KC_HAEN KC_LANG1
|
||||||
#define KC_HANJ KC_LANG2
|
#define KC_HANJ KC_LANG2
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue