Skip to content

Commit

Permalink
Add Fn+numpad keys to F77 template
Browse files Browse the repository at this point in the history
  • Loading branch information
arkku committed Aug 10, 2022
1 parent 4178617 commit c7268f7
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions modelf77/template_layers.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,69 @@ DEFINE_LAYER(APPLE_FN_LAYER) {
[KEY(RETURN)] = KEY(KP_ENTER),
#endif

#if RIGHT_BLOCK_TYPE == 1
[NUM_ROW_4_COL_2] = KEY(PAGE_UP),
[NUM_ROW_5_COL_1] = KEY(HOME),
[NUM_ROW_5_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_5_COL_3] = KEY(END),
#elif RIGHT_BLOCK_TYPE == 2
[NUM_ROW_1_COL_1] = KEY(HOME),
[NUM_ROW_1_COL_2] = KEY(PAGE_UP),
[NUM_ROW_1_COL_3] = KEY(PAGE_UP),

[NUM_ROW_2_COL_1] = KEY(HOME),
[NUM_ROW_2_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_2_COL_3] = KEY(END),

[NUM_ROW_3_COL_1] = KEY(END),
[NUM_ROW_3_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_3_COL_3] = KEY(PAGE_DOWN),

[NUM_ROW_4_COL_1] = KEY(INSERT),
[NUM_ROW_4_COL_2] = KEY(PAGE_UP),
[NUM_ROW_4_COL_3] = KEY(DELETE),

[NUM_ROW_5_COL_1] = KEY(HOME),
[NUM_ROW_5_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_5_COL_3] = KEY(END),
#elif RIGHT_BLOCK_TYPE == 3 || RIGHT_BLOCK_TYPE == 6
[NUM_ROW_2_COL_1] = KEY(HOME),
[NUM_ROW_2_COL_2] = KEY(PAGE_UP),
[NUM_ROW_2_COL_3] = KEY(PAGE_UP),

[NUM_ROW_3_COL_1] = KEY(HOME),
[NUM_ROW_3_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_3_COL_3] = KEY(END),

[NUM_ROW_4_COL_1] = KEY(END),
[NUM_ROW_4_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_4_COL_3] = KEY(PAGE_DOWN),

[NUM_ROW_5_COL_1] = KEY(INSERT),
[NUM_ROW_5_COL_2] = KEY(DELETE),
[NUM_ROW_5_COL_3] = KEY(KP_ENTER),
#else
[NUM_ROW_1_COL_1] = KEY(NUM_LOCK),
[NUM_ROW_1_COL_2] = KEY(F8),
[NUM_ROW_1_COL_3] = KEY(HOME),

[NUM_ROW_2_COL_1] = KEY(INSERT),
[NUM_ROW_2_COL_2] = CMD_SHIFT(3),
[NUM_ROW_2_COL_3] = KEY(END),

[NUM_ROW_3_COL_1] = KEY(F10),
[NUM_ROW_3_COL_2] = KEY(F11),
[NUM_ROW_3_COL_3] = KEY(F12),

[NUM_ROW_4_COL_1] = SHIFT(TAB),
[NUM_ROW_4_COL_2] = KEY(PAGE_UP),
[NUM_ROW_4_COL_3] = KEY(TAB),

[NUM_ROW_5_COL_1] = KEY(HOME),
[NUM_ROW_5_COL_2] = KEY(PAGE_DOWN),
[NUM_ROW_5_COL_3] = KEY(END),
#endif

[KEY_APPLE_FN] = LAYER_TOGGLE(APPLE_FN_LAYER),
};
#endif
Expand Down

0 comments on commit c7268f7

Please sign in to comment.