Make DEL to be a special character.

This commit is contained in:
ArthurSonzogni
2019-07-02 23:09:20 +02:00
parent 65e7fae7df
commit e1efcf2d97
3 changed files with 9 additions and 2 deletions

View File

@@ -19,7 +19,11 @@ class DrawKey : public Component {
for(auto& it : keys[i].input())
code += L" " + std::to_wstring((unsigned int)it);
code = L"(" + code + L" ) -> " + keys[i].character() + L")";
code = L"(" + code + L" ) -> ";
if (keys[i].is_character())
code += keys[i].character();
else
code += L"(special)";
children.push_back(text(code));
}
return vbox(std::move(children));