1
0

[Core] Speculative Hold option for mod-taps: hold mods instantly while unsettled. (#25572)

This commit is contained in:
Pascal Getreuer
2025-11-11 03:27:12 -08:00
committed by GitHub
parent 2af9aac61c
commit efc5d63383
20 changed files with 3662 additions and 1 deletions

View File

@@ -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;