added numeric support for iOS. Numbers were being ignored earlier

This commit is contained in:
techdragon.nguyen@gmail.com
2011-12-15 17:51:29 +00:00
parent 9733444320
commit 4b137e0b6b

View File

@@ -140,7 +140,11 @@ void SimplePad::pressKey(unsigned char key)
{
string input = "";
#ifdef IOS
if (isalnum(key))
#else
if (isalpha(key))
#endif
{
if (bCapslock)
input += toupper(key);
@@ -186,6 +190,9 @@ void SimplePad::pressKey(unsigned char key)
void SimplePad::CancelEdit()
{
#ifdef IOS
selected = KPD_CANCEL;
#endif
bCanceled = true;
Finish();
}