aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/action_util.c
diff options
context:
space:
mode:
authorPascal Getreuer2025-11-11 12:27:12 +0100
committerGitHub2025-11-11 12:27:12 +0100
commitefc5d63383b64291f25c8377bcfae8178dd63302 (patch)
tree6da3bafb3a53f478acae6d007cf94f90a2f26057 /quantum/action_util.c
parent2af9aac61c70b543f29f658984ea66993cc3db04 (diff)
[Core] Speculative Hold option for mod-taps: hold mods instantly while unsettled. (#25572)
Diffstat (limited to 'quantum/action_util.c')
-rw-r--r--quantum/action_util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/quantum/action_util.c b/quantum/action_util.c
index 0996ff908e..00cec24e3f 100644
--- a/quantum/action_util.c
+++ b/quantum/action_util.c
@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "debug.h"
#include "action_util.h"
#include "action_layer.h"
+#include "action_tapping.h"
#include "timer.h"
#include "keycode_config.h"
#include <string.h>
@@ -284,6 +285,10 @@ static uint8_t get_mods_for_report(void) {
}
#endif
+#ifdef SPECULATIVE_HOLD
+ mods |= get_speculative_mods();
+#endif
+
#ifdef KEY_OVERRIDE_ENABLE
// These need to be last to be able to properly control key overrides
mods &= ~suppressed_mods;