Restrict RAM searching to hex values only.

This commit is contained in:
Stephen Anthony 2022-12-11 15:50:40 -03:30
parent 43a67ef224
commit e8543ba075
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ RamWidget::RamWidget(GuiObject* boss, const GUI::Font& lfont, const GUI::Font& n
// Inputbox which will pop up when searching RAM
const StringList labels = { "Value" };
myInputBox = make_unique<InputTextDialog>(boss, lfont, nfont, labels, " ");
myInputBox->setTextFilter([](char c) {
return (c >= 'a' && c <= 'f') || (c >= '0' && c <= '9');
}
);
myInputBox->setTarget(this);
// Start with these buttons disabled