How to combine encoder with keypad as input device in LVGL v7.11

Description

What MCU/Processor/Board and compiler are you using?

MIMXRT1051

What LVGL version are you using?

LVGL v7.11

What do you want to achieve?

how to make use of encoder and keypad at the same time in LVGL v7.11

What have you tried so far?

either encoder or keypad could work properly.

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.