aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/vision_division
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-02-15 15:07:13 +1100
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-02-14 20:07:13 -0800
commit9e4ac6cf29e6b2ce950135c8f877c95f2d1f1d55 (patch)
treedf6cfe88ce0f51ea5ca7fd6b93aae7eaed67d8a5 /keyboards/vision_division
parentd5bc7fc1575543eb27cffcc465a8f0c4e11b7de7 (diff)
downloadfirmware-9e4ac6cf29e6b2ce950135c8f877c95f2d1f1d55.tar.gz
firmware-9e4ac6cf29e6b2ce950135c8f877c95f2d1f1d55.tar.bz2
firmware-9e4ac6cf29e6b2ce950135c8f877c95f2d1f1d55.zip
Migrate fn_actions for default keymaps (#4935)
* Migrate fn_actions for default keymaps * Rename the Grave/Escape Shift masks * No need for shift_esc_shift_mask * Change breaks to return false * Right align pointers * Add default case * Separate cases with empty lines
Diffstat (limited to 'keyboards/vision_division')
-rw-r--r--keyboards/vision_division/keymaps/default/keymap.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/keyboards/vision_division/keymaps/default/keymap.c b/keyboards/vision_division/keymaps/default/keymap.c
index 31b107661..314eaff98 100644
--- a/keyboards/vision_division/keymaps/default/keymap.c
+++ b/keyboards/vision_division/keymaps/default/keymap.c
@@ -121,7 +121,7 @@ enum keyboard_macros {
#define M_CP_CT M(MACRO_COPY_CUT)
-#define M_COPY KC_FN1
+#define M_COPY MACROTAP(MACRO_COPY_CUT)
#define SC_UNDO LCTL(KC_Z)
#define SC_REDO LCTL(KC_Y)
@@ -135,7 +135,7 @@ enum keyboard_macros {
#define SC_CCLS LCTL(KC_F4)
#define TG_NKRO MAGIC_TOGGLE_NKRO
-#define OS_SHFT KC_FN0
+#define OS_SHFT OSM(MOD_LSFT)
#define _______ KC_TRNS
#define XXXXXXX KC_NO
@@ -305,11 +305,6 @@ void persistent_default_layer_set(uint16_t default_layer)
default_layer_set(default_layer);
}
-const uint16_t PROGMEM fn_actions[] = {
- [0] = ACTION_MODS_ONESHOT(MOD_LSFT),
- [1] = ACTION_MACRO_TAP(MACRO_COPY_CUT),
-};
-
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
{
@@ -619,4 +614,4 @@ void music_scale_user(void)
PLAY_SONG(music_scale);
}
-#endif /* AUDIO_ENABLE */ \ No newline at end of file
+#endif /* AUDIO_ENABLE */