aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common/action.c
diff options
context:
space:
mode:
authorGravatar Nick Choi <nikchi@users.noreply.github.com>2017-05-23 13:08:44 -0400
committerGravatar GitHub <noreply@github.com>2017-05-23 13:08:44 -0400
commitec86fac6eee6e5148bc491497aadf2abed09a8ea (patch)
tree11da5a0a76838c5517ef7ecf50340432d7b7c8ef /tmk_core/common/action.c
parenteb660ef2184565c6bb69f1f67f7af8918d15688f (diff)
parentc7e9e643fa411266dfb9b08831967d29426b29bc (diff)
downloadqmk_firmware-ec86fac6eee6e5148bc491497aadf2abed09a8ea.tar.gz
Merge pull request #1 from qmk/master
pull new to mine
Diffstat (limited to 'tmk_core/common/action.c')
-rw-r--r--tmk_core/common/action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index 8640dfab3..a534f818e 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "action_macro.h"
#include "action_util.h"
#include "action.h"
+#include "wait.h"
#ifdef DEBUG_ACTION
#include "debug.h"
@@ -438,6 +439,9 @@ void process_action(keyrecord_t *record, action_t action)
} else {
if (tap_count > 0) {
dprint("KEYMAP_TAP_KEY: Tap: unregister_code\n");
+ if (action.layer_tap.code == KC_CAPS) {
+ wait_ms(80);
+ }
unregister_code(action.layer_tap.code);
} else {
dprint("KEYMAP_TAP_KEY: No tap: Off on release\n");