summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
committerWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
commit71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (patch)
tree3bb3e5e496621535611e087720aa5c4d7a533e5e /keyboards/planck/keymaps/default/keymap.c
parent86ad4988fe7ff64916127509d84f44c56fa097aa (diff)
parentda1f05fbc19477c05c0c01bb07fabfaf1ece9d54 (diff)
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'keyboards/planck/keymaps/default/keymap.c')
-rw-r--r--keyboards/planck/keymaps/default/keymap.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index 03cc0049e4..cc090200b7 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/keymap.c
@@ -274,19 +274,15 @@ void encoder_update(bool clockwise) {
} else {
if (clockwise) {
#ifdef MOUSEKEY_ENABLE
- register_code(KC_MS_WH_DOWN);
- unregister_code(KC_MS_WH_DOWN);
+ tap_code(KC_MS_WH_DOWN);
#else
- register_code(KC_PGDN);
- unregister_code(KC_PGDN);
+ tap_code(KC_PGDN);
#endif
} else {
#ifdef MOUSEKEY_ENABLE
- register_code(KC_MS_WH_UP);
- unregister_code(KC_MS_WH_UP);
+ tap_code(KC_MS_WH_UP);
#else
- register_code(KC_PGUP);
- unregister_code(KC_PGUP);
+ tap_code(KC_PGUP);
#endif
}
}