forked from mfulz_github/qmk_firmware
added backspace for keys
This commit is contained in:
parent
c7d78a05f3
commit
3a52e1819e
|
@ -967,6 +967,12 @@ int enc_read_key(uint16_t keycode) {
|
|||
case KC_9:
|
||||
enc_ctx.state.key[enc_ctx.state.key_size] = '9';
|
||||
break;
|
||||
case KC_BSPC:
|
||||
enc_ctx.state.key_size--;
|
||||
if (enc_ctx.state.key_size < 0) {
|
||||
enc_ctx.state.key_size = 0;
|
||||
}
|
||||
return 0;
|
||||
default:
|
||||
return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue