Using of VirtualKeyboard class

Hello, I’m trying to test “VirtualKeyboard”. I have two problems, the first one: when I try to simulate the keyboard arrows (up, down, right, left), only the image of the arrow is drawn into inputBox, the keyboard cursor in the inputBox is not removed according to the arrows. See attached code. Second thing: “Virtual Keyboard” can only be used with the “inputText” component or does the virtual keyboard also send events directly to the canvas or the scene? Thank you for any response - your time.

VirtualKeyboard with Shift. | Babylon.js Playground (babylonjs.com)

cc @carolhmj our GUI Guru

What do you mean by “keyboard cursor removed”? Do you mean moving the typing cursor? If that’s the case, unfortunately the virtual keyboard doesn’t support this automatically as of now. The only special keys supported are shift, backspace and enter: Babylon.js/virtualKeyboard.ts at master · BabylonJS/Babylon.js (github.com).

It also doesn’t support events to the canvas, it connects directly to InputText: Babylon.js/virtualKeyboard.ts at master · BabylonJS/Babylon.js (github.com).