This commit is contained in:
BernardoGiordano 2018-09-03 21:36:42 +02:00
commit f3e48f8b51

View file

@ -226,10 +226,10 @@ KeyboardManager::KeyboardManager(void)
);
buttons.push_back(spacebar);
// set first button as selected
buttons.at(0)->selected(true);
buttons.at(0)->invertColors();
prevSelectedButtonIndex = 0;
// set OK button as selected
buttons.at(INDEX_OK)->selected(true);
buttons.at(INDEX_OK)->invertColors();
prevSelectedButtonIndex = INDEX_OK;
}
KeyboardManager::~KeyboardManager(void)
@ -362,4 +362,4 @@ std::pair<bool, std::string> KeyboardManager::keyboard(const std::string& sugges
}
return std::make_pair(false, suggestion);
}
}