Implementing Key Override

- converting shift backspace to this setup since its simpler
- Just commented out the existing code in case this doesn't work
- May convert some of the symbols to this instead of a hold
This commit is contained in:
Victor 2024-05-06 22:38:26 -05:00
parent 20cdbdd1a5
commit bd0ef31328
Failed to generate hash of commit
4 changed files with 24 additions and 6 deletions

View file

@ -0,0 +1,13 @@
#include "keyoverride.h"
const key_override_t delete_override = ko_make_basic(MOD_MASK_SHIFT, KC_BSPC, KC_DEL);
const key_override_t medianext_override = ko_make_basic(MOD_MASK_SHIFT, KC_MNXT, KC_MPRV);
const key_override_t **key_overrides = (const key_override_t *[]){
&delete_override,
&medianext_override,
NULL // Null terminate the array of overrides!
};

View file

@ -0,0 +1,2 @@
#pragma once
#include "t4corun.h"

View file

@ -32,15 +32,17 @@ AUDIO_ENABLE = no
CAPS_WORD_ENABLE = yes
MOUSEKEY_ENABLE = yes
COMBO_ENABLE = yes
KEY_OVERRIDE_ENABLE = yes
# ---------------------------------------------------------
# include my code that will be common across all my keyboards
SRC += \
t4corun.c \
features/tapping.c \
features/taphold.c \
features/capsword.c \
SRC += \
t4corun.c \
features/tapping.c \
features/taphold.c \
features/capsword.c \
features/keyoverride.c \
INTROSPECTION_KEYMAP_C += features/combo.c

View file

@ -41,6 +41,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
return false;
/*
case KC_BSPC: {
//https://docs.qmk.fm/#/feature_advanced_keycodes?id=shift-backspace-for-delete
@ -90,7 +91,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
// if the shift modifier is not detected
return true;
}
*/
//https://docs.qmk.fm/#/mod_tap?id=changing-both-tasp-and-hold
//https://getreuer.info/posts/keyboards/triggers/index.html#tap-vs.-long-press
//https://www.jonashietala.se/series/t-34/ he focuses on a keymap for programming/VIM