summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Bell <agbell@gmail.com>2017-06-01 03:34:34 +0200
committerAdam Bell <agbell@gmail.com>2017-06-03 16:28:46 +0200
commit4ab61344f5fa3448639fb464faefb577b0442bfa (patch)
treeb0d462b2c678fdd99e9e35a930066f9773964ac4
parent587b0de6e563fa277c8661f2c5c48070bd004f4f (diff)
downloadqmk_firmware-4ab61344f5fa3448639fb464faefb577b0442bfa.tar.gz
qmk_firmware-4ab61344f5fa3448639fb464faefb577b0442bfa.tar.xz
Adding permissive_hold
-rw-r--r--keyboards/lets_split/keymaps/adam/config.h1
-rw-r--r--tmk_core/common/action_tapping.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/keyboards/lets_split/keymaps/adam/config.h b/keyboards/lets_split/keymaps/adam/config.h
index fbd739f32..177dd22d7 100644
--- a/keyboards/lets_split/keymaps/adam/config.h
+++ b/keyboards/lets_split/keymaps/adam/config.h
@@ -40,3 +40,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define TAPPING_TERM 200 //At 500 some bad logic takes hold
#define PREVENT_STUCK_MODIFIERS
#define IGNORE_MOD_TAP_INTERRUPT
+#define PERMISSIVE_HOLD
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c
index bd9a69ae0..531a3ca34 100644
--- a/tmk_core/common/action_tapping.c
+++ b/tmk_core/common/action_tapping.c
@@ -96,7 +96,7 @@ bool process_tapping(keyrecord_t *keyp)
// enqueue
return false;
}
-#if TAPPING_TERM >= 500
+#if TAPPING_TERM >= 500 || defined PERMISSIVE_HOLD
/* Process a key typed within TAPPING_TERM
* This can register the key before settlement of tapping,
* useful for long TAPPING_TERM but may prevent fast typing.