summaryrefslogtreecommitdiff
path: root/users/drashna/keyrecords/caps_word.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/keyrecords/caps_word.c')
-rw-r--r--users/drashna/keyrecords/caps_word.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/drashna/keyrecords/caps_word.c b/users/drashna/keyrecords/caps_word.c
index cc9ca93b72..0c7cd6cfe5 100644
--- a/users/drashna/keyrecords/caps_word.c
+++ b/users/drashna/keyrecords/caps_word.c
@@ -10,6 +10,16 @@
bool caps_word_enabled = false;
bool caps_word_shifted = false;
+/**
+ * @brief Handler for Caps Word feature.
+ *
+ * This checks the keycodes, and applies shift to the correct keys, if and when needid.
+ *
+ * @param keycode Keycode from matrix
+ * @param record keyrecord_t data structure
+ * @return true Continue processing keycode and sent to host
+ * @return false Stop processing keycode, and do not send to host
+ */
bool process_caps_word(uint16_t keycode, keyrecord_t* record) {
if (!caps_word_enabled) {
// Pressing both shift keys at the same time enables caps word.