From 8d90fc1474a58dd0902f8ff6cca68a18da3ad439 Mon Sep 17 00:00:00 2001 From: Matthias Fulz Date: Mon, 4 Jul 2022 00:27:55 +0200 Subject: [PATCH] Added close keyboard handle --- quantum/enc/enc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/quantum/enc/enc.c b/quantum/enc/enc.c index 274aaaedb1..f72a661a40 100644 --- a/quantum/enc/enc.c +++ b/quantum/enc/enc.c @@ -955,6 +955,13 @@ bool process_record_enc(uint16_t keycode, keyrecord_t *record) { } return false; break; + case ENC_CLOSE: + if (record->event.pressed) { + enc_clear_ctx(); + enc_switch_mode(ENC_MODE_CLOSED); + } + return false; + break; case ENC_PASTE: if (record->event.pressed) { if (!enc_request.data.data) {