Skip to content

Commit

Permalink
Merge pull request #34 from markeel/17-feature-suggestion-choose-shel…
Browse files Browse the repository at this point in the history
…l-path

Switch backspace key to produce DEL instead of BS
  • Loading branch information
markeel authored Jan 29, 2025
2 parents 4820a4f + 9e312e6 commit 45aa20a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gdterm/key_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,14 @@ fill_term_string(char * buffer, int buf_len, wchar_t unicode, godot::Key key) {
strcpy(buffer, "\t");
break;
case godot::Key::KEY_BACKSPACE:
strcpy(buffer, TMT_KEY_BACKSPACE);
if (ctrl) {
strcpy(buffer, TMT_KEY_BACKSPACE);
} else {
strcpy(buffer, "\x7f");
}
break;
case godot::Key::KEY_DELETE:
strcpy(buffer, "\x7f");
strcpy(buffer, "\x1b[3~");
break;
case godot::Key::KEY_KP_ENTER:
strcpy(buffer, "\r");
Expand Down

0 comments on commit 45aa20a

Please sign in to comment.