summaryrefslogtreecommitdiff
path: root/quantum/action_util.c
diff options
context:
space:
mode:
authorPascal Getreuer <50221757+getreuer@users.noreply.github.com>2025-11-11 03:27:12 -0800
committerGitHub <noreply@github.com>2025-11-11 22:27:12 +1100
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/>.
19#include "debug.h" 19#include "debug.h"
20#include "action_util.h" 20#include "action_util.h"
21#include "action_layer.h" 21#include "action_layer.h"
22#include "action_tapping.h"
22#include "timer.h" 23#include "timer.h"
23#include "keycode_config.h" 24#include "keycode_config.h"
24#include <string.h> 25#include <string.h>
@@ -284,6 +285,10 @@ static uint8_t get_mods_for_report(void) {
284 } 285 }
285#endif 286#endif
286 287
288#ifdef SPECULATIVE_HOLD
289 mods |= get_speculative_mods();
290#endif
291
287#ifdef KEY_OVERRIDE_ENABLE 292#ifdef KEY_OVERRIDE_ENABLE
288 // These need to be last to be able to properly control key overrides 293 // These need to be last to be able to properly control key overrides
289 mods &= ~suppressed_mods; 294 mods &= ~suppressed_mods;