Origin commit data
------------------
Branch: ni/coolstream
Commit: b57a2b31cd
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-25 (Fri, 25 Nov 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-11-25 18:57:11 +01:00
4 changed files with 30 additions and 2 deletions

View File

@@ -502,6 +502,22 @@ void CKeyboardInput::keyBackspacePressed(void)
}
}
void CKeyboardInput::keyDigiPressed(const neutrino_msg_t key)
{
int old_col = scol;
int old_srow = srow;
int digi = CRCInput::getNumericValue(key);
digi = (digi == 0) ? 10 : digi;
srow = 0;
scol = digi;
if (focus == FOCUS_KEY)
paintKey(old_srow, old_col);
focus = FOCUS_KEY;
paintKey(srow, scol);
NormalKeyPressed();
}
void CKeyboardInput::insertChar()
{
int item = inputSize -1;
@@ -614,6 +630,10 @@ int CKeyboardInput::exec(CMenuTarget* parent, const std::string &)
{
switchLayout();
}
else if (CRCInput::isNumeric(msg))
{
keyDigiPressed(msg);
}
else if ((msg == CRCInput::RC_home) || (msg == CRCInput::RC_timeout))
{
if ((inputString->getValue() != oldval) &&