sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

iOS Virtual Keyboard Layout

17 Jul 2021, 10:07

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
Attachments
iOSKeyboard.jpg
Desired input mode
NJkOE.png
Default input mode
Last edited by sergiu.zixelise on 02 Aug 2021, 08:29, edited 1 time in total.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: iOS Virtual Keyboard Layout

19 Jul 2021, 11:17

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;
    }
}
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: iOS Virtual Keyboard Layout

02 Aug 2021, 06:35

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
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: iOS Virtual Keyboard Layout

02 Aug 2021, 11:46

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: Google [Bot] and 73 guests