From 4fab4d2e806ee5aff112a0ef194cf0974e229eaa Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 9 Apr 2015 12:21:12 +0200 Subject: qiostextresponder: Use UIKeyboardTypePhonePad for ImhDialableCharactersOnly Change-Id: I8123199da51a0b840c068bea4ba089c0fec9697b Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/ios/qiostextresponder.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/ios/qiostextresponder.mm') diff --git a/src/plugins/platforms/ios/qiostextresponder.mm b/src/plugins/platforms/ios/qiostextresponder.mm index 5d2a675f90..0b5ff11b47 100644 --- a/src/plugins/platforms/ios/qiostextresponder.mm +++ b/src/plugins/platforms/ios/qiostextresponder.mm @@ -196,7 +196,7 @@ else if (hints & Qt::ImhFormattedNumbersOnly) self.keyboardType = UIKeyboardTypeDecimalPad; else if (hints & Qt::ImhDialableCharactersOnly) - self.keyboardType = UIKeyboardTypeNumberPad; + self.keyboardType = UIKeyboardTypePhonePad; else self.keyboardType = UIKeyboardTypeDefault; -- cgit v1.2.3 From 95b481ea6dfa901c23b012085527769f9b5823c9 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Thu, 9 Apr 2015 12:27:31 +0200 Subject: qiostextresponder: Add support for ImhLatinOnly Change-Id: I38f43cd644d3c26c834cf60019c4db1fa0b8d61f Reviewed-by: Richard Moe Gustavsen --- src/plugins/platforms/ios/qiostextresponder.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/ios/qiostextresponder.mm') diff --git a/src/plugins/platforms/ios/qiostextresponder.mm b/src/plugins/platforms/ios/qiostextresponder.mm index 0b5ff11b47..52336a4e69 100644 --- a/src/plugins/platforms/ios/qiostextresponder.mm +++ b/src/plugins/platforms/ios/qiostextresponder.mm @@ -197,6 +197,8 @@ self.keyboardType = UIKeyboardTypeDecimalPad; else if (hints & Qt::ImhDialableCharactersOnly) self.keyboardType = UIKeyboardTypePhonePad; + else if (hints & Qt::ImhLatinOnly) + self.keyboardType = UIKeyboardTypeASCIICapable; else self.keyboardType = UIKeyboardTypeDefault; -- cgit v1.2.3