mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Unfocus input when virtual keyboard is dismissed
This commit is contained in:
parent
967a70bd60
commit
6252d36a14
11 changed files with 91 additions and 2 deletions
|
@ -91,6 +91,12 @@ void ServoControl::OnLoaded(IInspectable const &, RoutedEventArgs const &) {
|
|||
|
||||
void ServoControl::InitializeTextController() {
|
||||
mInputPane = Windows::UI::ViewManagement::InputPane::GetForCurrentView();
|
||||
mInputPane->Hiding([=](const auto &, const auto &) {
|
||||
if (mLooping) {
|
||||
RunOnGLThread([=] { mServo->IMEDismissed(); });
|
||||
}
|
||||
});
|
||||
|
||||
auto manager = CoreTextServicesManager::GetForCurrentView();
|
||||
mEditContext = manager.CreateEditContext();
|
||||
mEditContext->InputPaneDisplayPolicy(CoreTextInputPaneDisplayPolicy::Manual);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue