- Updated documentation and standardize identation formatting - Added numpad key overrides to get function keys - got rid of function layer
28 lines
No EOL
546 B
C
28 lines
No EOL
546 B
C
#include "capsword.h"
|
|
|
|
//static bool caps_word_state = false;
|
|
|
|
bool caps_word_press_user(uint16_t keycode) {
|
|
|
|
switch (keycode) {
|
|
|
|
// Keycodes that continue Caps Word, with shift applied.
|
|
case KC_A ... KC_Z:
|
|
|
|
case KC_MINS:
|
|
add_weak_mods(MOD_BIT(KC_LSFT)); // Apply shift to next key.
|
|
return true;
|
|
|
|
// Keycodes that continue Caps Word, without shifting.
|
|
case KC_1 ... KC_0:
|
|
case KC_BSPC:
|
|
case KC_DEL:
|
|
case KC_UNDS:
|
|
return true;
|
|
|
|
default:
|
|
return false; // Deactivate Caps Word.
|
|
|
|
}
|
|
|
|
} |