From 050472a4d07d07c1d9ae17d2fd26d44e9d95d950 Mon Sep 17 00:00:00 2001
From: Eric Gebhart <e.a.gebhart@gmail.com>
Date: Sat, 12 Nov 2022 00:09:41 +0100
Subject: Eric Gebhart user space and keymaps (#17487)

Co-authored-by: Drashna Jaelre <drashna@live.com>
---
 users/ericgebhart/defs/mod_lock.def | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 users/ericgebhart/defs/mod_lock.def

(limited to 'users/ericgebhart/defs/mod_lock.def')

diff --git a/users/ericgebhart/defs/mod_lock.def b/users/ericgebhart/defs/mod_lock.def
new file mode 100644
index 0000000000..da53ea0503
--- /dev/null
+++ b/users/ericgebhart/defs/mod_lock.def
@@ -0,0 +1,19 @@
+// mod lock keys. takes keymods not mods.
+// keycode should be defined in custom_keys.def.
+// custom key,  modkey to activate
+MODL(ML_LSFT, KC_LSFT)
+MODL(ML_LCTL, KC_LCTL)
+MODL(ML_LALT, KC_LALT)
+MODL(ML_LGUI, KC_LGUI)
+
+// Keycodes which will NOT cancel mod lock mode.
+IGNORE_KC( KC_LEFT)
+IGNORE_KC( KC_RGHT)
+IGNORE_KC( KC_UP)
+IGNORE_KC( KC_DOWN)
+IGNORE_KC( KC_HOME)
+IGNORE_KC( KC_END)
+IGNORE_KC( ML_LALT)
+IGNORE_KC( ML_LCTL)
+IGNORE_KC( ML_LGUI)
+IGNORE_KC( ML_LSFT)
-- 
cgit v1.2.3

