コード例 #1
0
        private UIReturnKeyType Convert(A.KeyboardEnterTypes key)
        {
            switch (key)
            {
            case A.KeyboardEnterTypes.Done:
                return(UIReturnKeyType.Done);

            case A.KeyboardEnterTypes.Go:
                return(UIReturnKeyType.Go);

            case A.KeyboardEnterTypes.Next:
                return(UIReturnKeyType.Next);

            case A.KeyboardEnterTypes.Search:
                return(UIReturnKeyType.Search);

            case A.KeyboardEnterTypes.Send:
                return(UIReturnKeyType.Send);

            default:
                return(UIReturnKeyType.Default);
            }
        }
コード例 #2
0
        private ImeAction Convert(A.KeyboardEnterTypes key)
        {
            switch (key)
            {
            case A.KeyboardEnterTypes.Done:
                return(ImeAction.Done);

            case A.KeyboardEnterTypes.Go:
                return(ImeAction.Go);

            case A.KeyboardEnterTypes.Next:
                return(ImeAction.Next);

            case A.KeyboardEnterTypes.Search:
                return(ImeAction.Search);

            case A.KeyboardEnterTypes.Send:
                return(ImeAction.Send);

            default:
                return(ImeAction.Unspecified);
            }
        }