forked from mirror/qmk_firmware
[Core] Speculative Hold option for mod-taps: hold mods instantly while unsettled. (#25572)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user