Commit Graph
5 Commits
Author SHA1 Message Date
Yannis Juglaret 9e7fcd2468 Bug 1645571 - Prevent on-screen keyboard from dismissing itself. r=cmartin,win-reviewers
This patch makes us call IInputPane::add_Hiding with a no-op callback to
prevent explorer.exe from messing with our window.

Differential Revision: https://phabricator.services.mozilla.com/D208152
2024-05-16 15:45:21 +00:00
Masayuki Nakano 9dddab7dd7 Bug 1639824 - Make OKInputPaneManager warn only when TryShow() and TryHide() fail, we're active and we get unexpected result r=m_kato
I see a lot of "IInputPane2::TryHide is failure" warnings while WPT for editing
API runs.

According to MSDN, they return true only when the application is foreground and
the input panel hasn't been the requested state yet.  Therefore, it should
check whether the foreground window is our process or not, and whether the
input pane state is expected or not before warning.

* https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane.tryshow?view=winrt-18362
* https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane.tryhide?view=winrt-18362

Differential Revision: https://phabricator.services.mozilla.com/D76295
2020-05-21 15:40:41 +00:00
Makoto Kato 6f395666dd Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

Differential Revision: https://phabricator.services.mozilla.com/D68315
2020-04-07 22:30:37 +00:00
Mihai Alexandru Michis cb3931727d Backed out 6 changesets (bug 1618759) for causing mingw bustages on TSFTextStore.cpp
CLOSED TREE

Backed out changeset 77a93a01f924 (bug 1618759)
Backed out changeset f06a8ee813cf (bug 1618759)
Backed out changeset 020258996c4a (bug 1618759)
Backed out changeset 0e3a40bf9ba8 (bug 1618759)
Backed out changeset a4dcd48616d9 (bug 1618759)
Backed out changeset 010d99db9abd (bug 1618759)
2020-04-07 16:55:00 +03:00
Makoto Kato 43921b1ec8 Bug 1618759 - Part 4. Use InputPane to open on-screen keyboard for Windows 10 RS1+. r=masayuki
Unfortunately, current on-screen keyboard (OSK) code in Gecko doesn't work on
current Windows 10. Actually, Windows automatically control OSK when getting
focus. But this isn't good for web browser since `inputmode` spec can close
OSK by `none` value.

Windows 10 RS1 has new API (IInputPane [*1]) to control software keyboard. So
we have to use it if OS is RS1 or later.

TSF has new flag as `TS_SD_INPUTPANEMANUALDISPLAYENABLE` not to control OSK by
TSF. We should use it.

IMM doesn't have this feature to manage OSK. This will become a limitation for
`inputmode` implementation.

[*1] https://docs.microsoft.com/en-us/uwp/api/windows.ui.viewmanagement.inputpane

Depends on D68314

Differential Revision: https://phabricator.services.mozilla.com/D68315
2020-04-07 13:27:33 +00:00