Skip to content

Commit

Permalink
fixes qmk#4583
Browse files Browse the repository at this point in the history
  • Loading branch information
chax committed Dec 10, 2018
1 parent 16302be commit a80c4c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions quantum/process_keycode/process_terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,17 @@ bool process_terminal(uint16_t keycode, keyrecord_t *record) {
disable_terminal();
return false;
}

if (keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) {
keycode = keycode & 0xFF;
}

if (keycode < 256) {
uint8_t str_len;
char char_to_add;
switch (keycode) {
case KC_ENTER:
case KC_KP_ENTER:
push_to_cmd_buffer();
current_cmd_buffer_pos = 0;
process_terminal_command();
Expand Down

0 comments on commit a80c4c1

Please sign in to comment.