Added close keyboard handle

This commit is contained in:
Matthias Fulz 2022-07-04 00:27:55 +02:00
parent 4a28710f4b
commit 8d90fc1474
1 changed files with 7 additions and 0 deletions

View File

@ -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) {