mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-08 08:34:17 -04:00
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:
parent
20cdbdd1a5
commit
bd0ef31328
4 changed files with 24 additions and 6 deletions
13
users/t4corun/features/keyoverride.c
Normal file
13
users/t4corun/features/keyoverride.c
Normal 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!
|
||||
|
||||
};
|
2
users/t4corun/features/keyoverride.h
Normal file
2
users/t4corun/features/keyoverride.h
Normal file
|
@ -0,0 +1,2 @@
|
|||
#pragma once
|
||||
#include "t4corun.h"
|
|
@ -32,6 +32,7 @@ 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
|
||||
|
@ -41,6 +42,7 @@ SRC += \
|
|||
features/tapping.c \
|
||||
features/taphold.c \
|
||||
features/capsword.c \
|
||||
features/keyoverride.c \
|
||||
|
||||
INTROSPECTION_KEYMAP_C += features/combo.c
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue