sergiu.zixelise
Topic Author
Posts: 1
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

Tags:
 
User avatar
jsantos
Site Admin
Posts: 3139
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;
    }
}

Who is online

Users browsing this forum: No registered users and 1 guest