1
0
Fork 0

[MERGE][Core] suspend: suppress wake up keypress (23389-241026)

This commit is contained in:
Drashna Jael're 2024-10-26 20:37:59 -07:00
parent 7ba6f4d639
commit 9c397f665b
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
6 changed files with 48 additions and 3 deletions

View file

@ -32,6 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "sendchar.h"
#include "eeconfig.h"
#include "action_layer.h"
#include "suspend.h"
#ifdef BOOTMAGIC_ENABLE
# include "bootmagic.h"
#endif
@ -510,6 +511,7 @@ void switch_events(uint8_t row, uint8_t col, bool pressed) {
void haptic_handle_key_event(uint8_t row, uint8_t col, bool pressed);
haptic_handle_key_event(row, col, pressed);
#endif // HAPTIC_ENABLE && SPLIT_HAPTIC_ENABLE
wakeup_matrix_handle_key_event(row, col, pressed);
}
/**
@ -573,7 +575,7 @@ static bool matrix_task(void) {
if (row_changes & col_mask) {
const bool key_pressed = current_row & col_mask;
if (process_keypress) {
if (process_keypress && !keypress_is_wakeup_key(row, col)) {
action_exec(MAKE_KEYEVENT(row, col, key_pressed));
}