summaryrefslogtreecommitdiff
path: root/keyboards/preonic/keymaps/zach/zach_common_functions.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
committerNick Brassel <nick@tzarc.org>2022-11-28 07:54:00 +1100
commit4020674163fc80914059c4c9c3be5c0ae00bd150 (patch)
tree6f4187d72b04d03572adf507502afbda9726d696 /keyboards/preonic/keymaps/zach/zach_common_functions.c
parent8f9b49dc5b05fd3421e47aa76822a5b2199dfca6 (diff)
parent9e78e65a566487b2f4fe7b663971a01deb6ddad2 (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'keyboards/preonic/keymaps/zach/zach_common_functions.c')
-rw-r--r--keyboards/preonic/keymaps/zach/zach_common_functions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/preonic/keymaps/zach/zach_common_functions.c b/keyboards/preonic/keymaps/zach/zach_common_functions.c
index 5de64de955..7a594b567f 100644
--- a/keyboards/preonic/keymaps/zach/zach_common_functions.c
+++ b/keyboards/preonic/keymaps/zach/zach_common_functions.c
@@ -237,7 +237,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case SHFT_CAP:
if(record->event.pressed){
key_timer = timer_read(); // if the key is being pressed, we start the timer.
- register_code(KC_LSHIFT);
+ register_code(KC_LSFT);
} else { // this means the key was just released (tap or "held down")
if(timer_elapsed(key_timer) < 152){ // Time in ms, the threshold we pick for counting something as a tap.
tap(KC_CAPS);
@@ -253,7 +253,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#endif
}
}
- unregister_code(KC_LSHIFT);
+ unregister_code(KC_LSFT);
}
return false;
break;
@@ -301,7 +301,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef UNICODE_ENABLE
case UNIWIN:
if(record->event.pressed){
- set_unicode_input_mode(UC_WIN);
+ set_unicode_input_mode(UNICODE_MODE_WINDOWS);
#ifdef AUDIO_ENABLE
PLAY_SONG(uniwin);
#endif
@@ -310,7 +310,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case UNILIN:
if(record->event.pressed){
- set_unicode_input_mode(UC_LNX);
+ set_unicode_input_mode(UNICODE_MODE_LINUX);
#ifdef AUDIO_ENABLE
PLAY_SONG(unilin);
#endif