mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-16 16:08:08 +08:00
Make DEL to be a special character.
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user