- sergiu.zixelise
- Posts: 12
- Joined:
iOS Virtual Keyboard Layout
Hey guys,
Using noesis to develop the UI for an iOS app, I am wondering if there is any way to control the layout of the keyboard.
The standard way is for a notification to pup-up to show the input text, but the client "hates" it and wants it to be like his old app. I attached screenshots of the current way, and the desired new way.
Also in CSS there is a way to change the keyboard for a text field, for example, change it to numeric input. Is that possible with noesis?
Best,
Sergiu
Using noesis to develop the UI for an iOS app, I am wondering if there is any way to control the layout of the keyboard.
The standard way is for a notification to pup-up to show the input text, but the client "hates" it and wants it to be like his old app. I attached screenshots of the current way, and the desired new way.
Also in CSS there is a way to change the keyboard for a text field, for example, change it to numeric input. Is that possible with noesis?
Best,
Sergiu
Last edited by sergiu.zixelise on 02 Aug 2021, 08:29, edited 1 time in total.
Re: iOS Virtual Keyboard Layout
This is Unity right?
The InputScope property provides a hint at the type of text input expected by the control.
Right now, this is being mapped to Unity doing the following (NoesisUnity.cs):
The InputScope property provides a hint at the type of text input expected by the control.
Code: Select all
<TextBox Header="Telephone Number" InputScope="TelephoneNumber"/>
Code: Select all
if (focused_ is FrameworkElement)
{
switch (((FrameworkElement)focused_).InputScope)
{
case InputScope.Url:
keyboardType = TouchScreenKeyboardType.URL;
break;
case InputScope.Digits:
case InputScope.Number:
case InputScope.NumberFullWidth:
keyboardType = TouchScreenKeyboardType.NumbersAndPunctuation;
break;
case InputScope.TelephoneNumber:
case InputScope.TelephoneLocalNumber:
keyboardType = TouchScreenKeyboardType.PhonePad;
break;
case InputScope.AlphanumericFullWidth:
case InputScope.AlphanumericHalfWidth:
keyboardType = TouchScreenKeyboardType.NamePhonePad;
break;
case InputScope.EmailSmtpAddress:
keyboardType = TouchScreenKeyboardType.EmailAddress;
break;
case InputScope.RegularExpression:
keyboardType = TouchScreenKeyboardType.Search;
break;
default:
keyboardType = TouchScreenKeyboardType.Default;
break;
}
}
- sergiu.zixelise
- Posts: 12
- Joined:
Re: iOS Virtual Keyboard Layout
Hey, jsantos!
Thank you for your reply, totally forgot to mention it's UE4, not unity.
I tried adding the InputScope property to my text boxes, but doesn't make any difference, has anyone had success with this on iOS from UE4 export?
Best,
Sergiu
Thank you for your reply, totally forgot to mention it's UE4, not unity.
I tried adding the InputScope property to my text boxes, but doesn't make any difference, has anyone had success with this on iOS from UE4 export?
Best,
Sergiu
Re: iOS Virtual Keyboard Layout
I would say InputScope is being ignored on Unreal. Please, open a ticket in the tracker about it. Thank you!
Who is online
Users browsing this forum: No registered users and 12 guests