Skip to content

OnKeyboardAction not firing #135

Description

@trackme518

Hi,
I have problems with:
public static Action<bool, int> OnKeyboardAction = delegate { };
it does not trigger even when I subscribe with MobileInput.OnKeyboardAction += OnKeyboardAction; in Awake() fce. Do I need to subscribe to instances of MobileInputField? Or somehow set the Action to MobileInput? The Action itself is public...

You are using
const string KEYBOARD_ACTION = "KEYBOARD";
and

                    switch (action) {
                        case KEYBOARD_ACTION:
                            bool isShow = response["show"];
                            int height = response["height"];
                            OnKeyboardAction(isShow, height);
                            return;

Tested on iOS, iphone 16.

In the meantime I have implemented my own keyboard detection logic outside UMI. Just reporting it is not working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions