diff options
| author | Damien <Dbroqua@users.noreply.github.com> | 2017-04-02 23:29:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-02 23:29:12 +0200 |
| commit | 3e41cde9f99778ca30c03b97470c32780379db43 (patch) | |
| tree | 18e2376acae06563166b5ea8b8cd6368cb9cddae /tmk_core/common/action_tapping.c | |
| parent | e7347ff0de93ff823462b3ff2b4136b44dc576c0 (diff) | |
| parent | 3448d5d4874a2775f85320a2be69edd241575d46 (diff) | |
| download | qmk_firmware-3e41cde9f99778ca30c03b97470c32780379db43.tar.gz qmk_firmware-3e41cde9f99778ca30c03b97470c32780379db43.zip | |
Merge pull request #19 from qmk/master
Merge from qmk
Diffstat (limited to 'tmk_core/common/action_tapping.c')
| -rw-r--r-- | tmk_core/common/action_tapping.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c index ff78d7f2a..bd9a69ae0 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) | |||
| 228 | if (WITHIN_TAPPING_TERM(event)) { | 228 | if (WITHIN_TAPPING_TERM(event)) { |
| 229 | if (event.pressed) { | 229 | if (event.pressed) { |
| 230 | if (IS_TAPPING_KEY(event.key)) { | 230 | if (IS_TAPPING_KEY(event.key)) { |
| 231 | #ifndef TAPPING_FORCE_HOLD | ||
| 231 | if (!tapping_key.tap.interrupted && tapping_key.tap.count > 0) { | 232 | if (!tapping_key.tap.interrupted && tapping_key.tap.count > 0) { |
| 232 | // sequential tap. | 233 | // sequential tap. |
| 233 | keyp->tap = tapping_key.tap; | 234 | keyp->tap = tapping_key.tap; |
| @@ -237,11 +238,11 @@ bool process_tapping(keyrecord_t *keyp) | |||
| 237 | tapping_key = *keyp; | 238 | tapping_key = *keyp; |
| 238 | debug_tapping_key(); | 239 | debug_tapping_key(); |
| 239 | return true; | 240 | return true; |
| 240 | } else { | ||
| 241 | // FIX: start new tap again | ||
| 242 | tapping_key = *keyp; | ||
| 243 | return true; | ||
| 244 | } | 241 | } |
| 242 | #endif | ||
| 243 | // FIX: start new tap again | ||
| 244 | tapping_key = *keyp; | ||
| 245 | return true; | ||
| 245 | } else if (is_tap_key(event.key)) { | 246 | } else if (is_tap_key(event.key)) { |
| 246 | // Sequential tap can be interfered with other tap key. | 247 | // Sequential tap can be interfered with other tap key. |
| 247 | debug("Tapping: Start with interfering other tap.\n"); | 248 | debug("Tapping: Start with interfering other tap.\n"); |
