added DEGREE and ELLIPSIS chars to allowed PopUpWidget chars

This commit is contained in:
Thomas Jentzsch 2021-06-27 09:31:52 +02:00
parent 135ee8748d
commit 287ab8b742
1 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,9 @@ PopUpWidget::PopUpWidget(GuiObject* boss, const GUI::Font& font,
_textcolor = kTextColor;
_textcolorhi = kTextColor; // do not highlight the label
setTextFilter([](char c) {
return isprint(c) && c != '\"' || c == '\x1c' || c == '\x1d'; // DEGREE || ELLIPSIS
});
setEditable(false);
if(!_label.empty() && _labelWidth == 0)