浏览代码

Adding permissive_hold

Adam Bell 8 年之前
父节点
当前提交
4ab61344f5
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      keyboards/lets_split/keymaps/adam/config.h
  2. 1 1
      tmk_core/common/action_tapping.c

+ 1 - 0
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

+ 1 - 1
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.