Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upVirtual keyboard does not appear when text inputs are focused #26898
Comments
|
This will probably require #26680 to be fixed for the keyboard to be useful, too. |
|
The lack of this keyboard prevents testing any content that is hidden behind user/password access. |
|
We might be able to use InputPane.GetForCurrentView().TryShow(). We may also need to rely on CoreTextEditContext.InputPaneDisplayPolicy and manually show the keyboard when the UI's URL bar is focused. |
|
Perhaps one option would be making the Servo control behave like a custom text input control. |
|
I'm looking at this. |
|
This will be implemented in 2 steps. I'm going to initially land a simple text controller mechanism that implements key events and also sync our IME messages with the InputPane. But the way Servo handles text inputs is too simplistic to implement correctly a text handler. We're missing pieces to get the proper behavior (like exposing selection range, caret position, etc, which is necessary to synchronize the field within the virtual keyboard). But UWP offers some possible fallback. I'm also wondering if we should not let the embedder handle all the text/caret/selection/range behavior. That would be easy on Windows. Not sure about the winit port and Android. I'll see later what is the best approach. |
|
On Desktop, no issue. I think if we get to a point where can enter login and passwords on the device, it's a good enough first step. |
servo/support/hololens/ServoApp/ServoControl/ServoControl.cpp
Lines 442 to 445 in c2a1ab1