added numeric support for iOS. Numbers were being ignored earlier
This commit is contained in:
@@ -140,7 +140,11 @@ void SimplePad::pressKey(unsigned char key)
|
|||||||
{
|
{
|
||||||
string input = "";
|
string input = "";
|
||||||
|
|
||||||
|
#ifdef IOS
|
||||||
|
if (isalnum(key))
|
||||||
|
#else
|
||||||
if (isalpha(key))
|
if (isalpha(key))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
if (bCapslock)
|
if (bCapslock)
|
||||||
input += toupper(key);
|
input += toupper(key);
|
||||||
@@ -186,6 +190,9 @@ void SimplePad::pressKey(unsigned char key)
|
|||||||
|
|
||||||
void SimplePad::CancelEdit()
|
void SimplePad::CancelEdit()
|
||||||
{
|
{
|
||||||
|
#ifdef IOS
|
||||||
|
selected = KPD_CANCEL;
|
||||||
|
#endif
|
||||||
bCanceled = true;
|
bCanceled = true;
|
||||||
Finish();
|
Finish();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user