Page 1 of 1

iOS Virtual Keyboard Layout

Posted: 17 Jul 2021, 10:07
by sergiu.zixelise
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

Re: iOS Virtual Keyboard Layout

Posted: 19 Jul 2021, 11:17
by jsantos
This is Unity right?

The InputScope property provides a hint at the type of text input expected by the control.
<TextBox Header="Telephone Number" InputScope="TelephoneNumber"/>
Right now, this is being mapped to Unity doing the following (NoesisUnity.cs):
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;
    }
}

Re: iOS Virtual Keyboard Layout

Posted: 02 Aug 2021, 06:35
by sergiu.zixelise
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

Re: iOS Virtual Keyboard Layout

Posted: 02 Aug 2021, 11:46
by jsantos
I would say InputScope is being ignored on Unreal. Please, open a ticket in the tracker about it. Thank you!