Skip to content

Commit

Permalink
fix backspace not working on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Feb 4, 2024
1 parent f1bcfda commit 1f7c631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/terminal/input.d
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ KeyPress GetKey() {
case Key.Null: return KeyPress(Key.Null, 0);
case '\x1b': break;
case '\r': return KeyPress('\n', 0);
case 8: return KeyPress(Key.Backspace, 0);
case 9: return KeyPress(Key.Tab, 0);
case ('a' & 0x1F): return KeyPress('a', KeyMod.Ctrl);
case ('b' & 0x1F): return KeyPress('b', KeyMod.Ctrl);
Expand All @@ -157,7 +158,7 @@ KeyPress GetKey() {
case ('e' & 0x1F): return KeyPress('e', KeyMod.Ctrl);
case ('f' & 0x1F): return KeyPress('f', KeyMod.Ctrl);
case ('g' & 0x1F): return KeyPress('g', KeyMod.Ctrl);
case ('h' & 0x1F): return KeyPress('h', KeyMod.Ctrl);
// case ('h' & 0x1F): return KeyPress('h', KeyMod.Ctrl);
// case ('i' & 0x1F): return KeyPress('i', KeyMod.Ctrl);
case ('j' & 0x1F): return KeyPress('j', KeyMod.Ctrl);
case ('k' & 0x1F): return KeyPress('k', KeyMod.Ctrl);
Expand Down

0 comments on commit 1f7c631

Please sign in to comment.