Skip to content

Commit

Permalink
Added ascii value 8 for backspace (daniele77#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Subrata Paul <Subrata.Paul@radisys.com>
Close daniele77#122
  • Loading branch information
paulsubrata55 authored Sep 22, 2022
1 parent e8739a7 commit 7270d6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/cli/detail/linuxkeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ class LinuxKeyboard : public InputDevice
case 4: // EOT
return std::make_pair(KeyType::eof,' ');
break;
case 127: return std::make_pair(KeyType::backspace,' '); break;
case 127:
case 8:
return std::make_pair(KeyType::backspace,' '); break;
case 10: return std::make_pair(KeyType::ret,' '); break;
case 27: // symbol
ch = std::getchar();
Expand Down

0 comments on commit 7270d6e

Please sign in to comment.