aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action.c
diff options
context:
space:
mode:
authorjerryen <Jerry@jerryen.com>2017-05-19 17:24:47 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2017-05-19 17:24:47 -0700
commit9c284786e728a2e8834745d6bb7df0fda4099cf3 (patch)
tree1aec50a62f6ca0554b284338c69d2f4502f00f61 /tmk_core/common/action.c
parent85df6873487000583454657fb20ac7cea7194f8d (diff)
downloadqmk_firmware-9c284786e728a2e8834745d6bb7df0fda4099cf3.tar.gz
qmk_firmware-9c284786e728a2e8834745d6bb7df0fda4099cf3.zip
Workaround for the macOS caps lock delay (#1308)
* Add 80ms delay for KC_CAPS when used as a tap key Workaround for the macOS caps lock delay * Revert "Increase TAPPING_TERM for the Clueboard" This reverts commit a74e69e9fa889113ee31fbc8dc7e6848fdb07576.
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/>.
26#include "action_macro.h" 26#include "action_macro.h"
27#include "action_util.h" 27#include "action_util.h"
28#include "action.h" 28#include "action.h"
29#include "wait.h"
29 30
30#ifdef DEBUG_ACTION 31#ifdef DEBUG_ACTION
31#include "debug.h" 32#include "debug.h"
@@ -438,6 +439,9 @@ void process_action(keyrecord_t *record, action_t action)
438 } else { 439 } else {
439 if (tap_count > 0) { 440 if (tap_count > 0) {
440 dprint("KEYMAP_TAP_KEY: Tap: unregister_code\n"); 441 dprint("KEYMAP_TAP_KEY: Tap: unregister_code\n");
442 if (action.layer_tap.code == KC_CAPS) {
443 wait_ms(80);
444 }
441 unregister_code(action.layer_tap.code); 445 unregister_code(action.layer_tap.code);
442 } else { 446 } else {
443 dprint("KEYMAP_TAP_KEY: No tap: Off on release\n"); 447 dprint("KEYMAP_TAP_KEY: No tap: Off on release\n");