mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +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()
|
void CKeyboardInput::insertChar()
|
||||||
{
|
{
|
||||||
int item = inputSize -1;
|
int item = inputSize -1;
|
||||||
@@ -614,6 +630,10 @@ int CKeyboardInput::exec(CMenuTarget* parent, const std::string &)
|
|||||||
{
|
{
|
||||||
switchLayout();
|
switchLayout();
|
||||||
}
|
}
|
||||||
|
else if (CRCInput::isNumeric(msg))
|
||||||
|
{
|
||||||
|
keyDigiPressed(msg);
|
||||||
|
}
|
||||||
else if ((msg == CRCInput::RC_home) || (msg == CRCInput::RC_timeout))
|
else if ((msg == CRCInput::RC_home) || (msg == CRCInput::RC_timeout))
|
||||||
{
|
{
|
||||||
if ((inputString->getValue() != oldval) &&
|
if ((inputString->getValue() != oldval) &&
|
||||||
|
@@ -104,6 +104,8 @@ class CKeyboardInput : public CMenuTarget
|
|||||||
bool force_saveScreen;
|
bool force_saveScreen;
|
||||||
fb_pixel_t *pixBuf;
|
fb_pixel_t *pixBuf;
|
||||||
|
|
||||||
|
void keyDigiPressed(const neutrino_msg_t key);
|
||||||
|
|
||||||
virtual void init();
|
virtual void init();
|
||||||
|
|
||||||
virtual void paint();
|
virtual void paint();
|
||||||
|
Reference in New Issue
Block a user