diff options
author | QMK Bot <hello@qmk.fm> | 2022-04-22 08:17:09 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2022-04-22 08:17:09 +0000 |
commit | 7808ddac0a7f5dfea854147d15c4b591d9e828e5 (patch) | |
tree | 821aa471b13f19caca74c0e311da97e008809190 /keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h | |
parent | a727bd646336062c6167a8656ebdcc3f979f9058 (diff) | |
parent | 56b125ad77d3a06ad3f04e12113adbe7a969c54c (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h')
-rw-r--r-- | keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h b/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h new file mode 100644 index 0000000000..a609a32544 --- /dev/null +++ b/keyboards/handwired/dactyl_manuform/3x5_3/keymaps/dlford/features/caps_word.h @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// +// Caps Word, activated by pressing both shift keys at the same time. +// +// This library implements "Caps Word", which is like conventional Caps Lock, +// but automatically disables itself at the end of the word. This is useful for +// typing all-caps identifiers like `MOD_MASK_ALT`. +// +// Caps Word is activated by pressing the left and right shift keys at the same +// time. This way you don't need a dedicated key for using Caps Word. I've +// tested that this works as expected with one-shot mods and Space Cadet Shift. +// If your shift keys are mod-taps, activate Caps Word by holding both shift +// mod-tap keys until the tapping term, release them, then begin typing. +// +// For full documentation, see +// https://getreuer.info/posts/keyboards/caps-word + +#pragma once + +#include QMK_KEYBOARD_H + +bool process_caps_word(uint16_t keycode, keyrecord_t* record); +extern bool caps_word_enabled; |