fix formatting
This commit is contained in:
parent
e822704000
commit
868427d388
|
@ -2,14 +2,17 @@
|
||||||
#include "layers.h"
|
#include "layers.h"
|
||||||
#include "features/sentence_case.h"
|
#include "features/sentence_case.h"
|
||||||
|
|
||||||
|
// Define the behaviour of our custom keycodes
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
if (!process_sentence_case(keycode, record)) { return false; }
|
if (!process_sentence_case(keycode, record)) { return false; }
|
||||||
|
|
||||||
case SC_TOGG:
|
switch (keycode) {
|
||||||
if (record->event.pressed) {
|
// Toggle sentence case.
|
||||||
sentence_case_toggle();
|
case SC_TOGG:
|
||||||
}
|
if (record->event.pressed) {
|
||||||
return false;
|
sentence_case_toggle();
|
||||||
}
|
}
|
||||||
|
return false; // Skip all further processing of this key
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue