summaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorFredric Silberberg <fred@silberberg.xyz>2017-08-06 10:50:20 +0200
committerJack Humbert <jack.humb@gmail.com>2017-08-08 16:02:53 +0200
commit8e1be7c792c4c9f65ba7e990f2a773a23b40d20c (patch)
treec82bdd82f0aa881e541f6b44fb73d3a54fdf886d /quantum/quantum.c
parent7a9fb7c96b876cf0d6c44c4649d3504572e56fa3 (diff)
downloadqmk_firmware-8e1be7c792c4c9f65ba7e990f2a773a23b40d20c.tar.gz
qmk_firmware-8e1be7c792c4c9f65ba7e990f2a773a23b40d20c.tar.xz
Initial implementation of the key_lock feature.
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 1f8ce6c46..c71a97bf2 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -193,6 +193,10 @@ bool process_record_quantum(keyrecord_t *record) {
// }
if (!(
+ #if defined(KEY_LOCK_ENABLE)
+ // Must run first to be able to mask key_up events.
+ process_key_lock(keycode, record) &&
+ #endif
process_record_kb(keycode, record) &&
#if defined(MIDI_ENABLE) && defined(MIDI_ADVANCED)
process_midi(keycode, record) &&