summaryrefslogtreecommitdiff
path: root/tmk_core/common
diff options
context:
space:
mode:
authorlambdalisue <lambdalisue@hashnote.net>2017-02-14 14:12:54 +0900
committerlambdalisue <lambdalisue@hashnote.net>2017-02-14 14:12:54 +0900
commit64f9779fe54facecdef9d1a6a7c1d893f79ca20e (patch)
tree0df64f7cccf718bc2fa01a928006a8ee1ee0f242 /tmk_core/common
parentfd2925efbac0d7963f3d267dd5264f08a0a4e9dc (diff)
downloadqmk_firmware-64f9779fe54facecdef9d1a6a7c1d893f79ca20e.tar.gz
qmk_firmware-64f9779fe54facecdef9d1a6a7c1d893f79ca20e.zip
Add TAPPING_FORCE_HOLD to regulate behaviour
See #889 for the detail.
Diffstat (limited to 'tmk_core/common')
-rw-r--r--tmk_core/common/action_tapping.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c
index e16e11be7f..66044d8bce 100644
--- a/tmk_core/common/action_tapping.c
+++ b/tmk_core/common/action_tapping.c
@@ -228,6 +228,7 @@ bool process_tapping(keyrecord_t *keyp)
if (WITHIN_TAPPING_TERM(event)) {
if (event.pressed) {
if (IS_TAPPING_KEY(event.key)) {
+#ifndef TAPPING_FORCE_HOLD
if (!tapping_key.tap.interrupted && tapping_key.tap.count > 0) {
// sequential tap.
keyp->tap = tapping_key.tap;
@@ -237,11 +238,11 @@ bool process_tapping(keyrecord_t *keyp)
tapping_key = *keyp;
debug_tapping_key();
return true;
- } else {
- // FIX: start new tap again
- tapping_key = *keyp;
- return true;
}
+#endif
+ // FIX: start new tap again
+ tapping_key = *keyp;
+ return true;
} else if (is_tap_key(event.key)) {
// Sequential tap can be interfered with other tap key.
debug("Tapping: Start with interfering other tap.\n");