mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
src/gui/widget/keyboard_input.cpp -add direkt digikey pressed
Origin commit data
------------------
Branch: ni/coolstream
Commit: 983d24cd51
Author: Jacek Jendrzej <overx300@gmail.com>
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:
@@ -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) &&
|
||||
|
Reference in New Issue
Block a user