likemike Posted May 8, 2022 Share Posted May 8, 2022 Hello! I use UniSweetAlert (I like the style) to get an input from the user. The input is an integer. Unfortunately iPhones display the alpha keyboard by default. Is it possible to force the numeric keyboard somehow? Regards Mike Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 Hello, And what is the behavior on android, can you check? Link to comment Share on other sites More sharing options...
likemike Posted May 8, 2022 Author Share Posted May 8, 2022 Yes - Android displays the alpha keyboard too, but in the first line there are numbers. So here it's ok. Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 Ok. I will try to check. Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 Are you using mobile component? Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 39 minutes ago, likemike said: Yes - Android displays the alpha keyboard too, but in the first line there are numbers. So here it's ok. Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 UniSweetAlert1.InputType := ItNumber; //<------------ UniSweetAlert1.ShowCancelButton := True; UniSweetAlert1.Show('Please enter your user name:'); Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 4 minutes ago, Sherzod said: Are you using mobile component? I meant mobile app. Link to comment Share on other sites More sharing options...
likemike Posted May 8, 2022 Author Share Posted May 8, 2022 Sometimes it's so easy... I forgot about this property. It works now. Thanks a lot. Link to comment Share on other sites More sharing options...
likemike Posted May 8, 2022 Author Share Posted May 8, 2022 There's an interesting difference between iOS and Android in respect of the apperance of the virtual keyboard: on iOS the UnimSweetAlert appears without opening the virtual keyboard (only when you click in the input field, the keyboard appears too) on Android the UnimSweetAlert appears with opening the virtual keyboard simultaneously Link to comment Share on other sites More sharing options...
Sherzod Posted May 8, 2022 Share Posted May 8, 2022 2 hours ago, likemike said: on Android the UnimSweetAlert appears with opening the virtual keyboard simultaneously Is input focus active at this moment? Link to comment Share on other sites More sharing options...
likemike Posted May 9, 2022 Author Share Posted May 9, 2022 Sorry, but I don't know how to set focus to the input field of an UniSweetAlert... Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2022 Share Posted May 9, 2022 1 hour ago, likemike said: but I don't know how to set focus to the input field of an UniSweetAlert... It should be by default. Link to comment Share on other sites More sharing options...
likemike Posted May 9, 2022 Author Share Posted May 9, 2022 The problem is the new behaviour of iOS. Apple replaced the doubleclick by a tripleclick. I open the UniSweetAlert by choosing a line in an UnimDBGrid. The doubleclick don't work here anymore - so the user has to tripleclick or use the "hold"-function. Both methods remove the focus from the UniSweetAlert input field. Link to comment Share on other sites More sharing options...
Recommended Posts