mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
8a25b6b137
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 --HG-- extra : moz-landing-system : lando
25 lines
719 B
C++
25 lines
719 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sts=2 sw=2 et cin: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_widget_OSKInputPaneManager_h
|
|
#define mozilla_widget_OSKInputPaneManager_h
|
|
|
|
#include <windows.h>
|
|
|
|
namespace mozilla {
|
|
namespace widget {
|
|
|
|
class OSKInputPaneManager final {
|
|
public:
|
|
static void ShowOnScreenKeyboard(HWND aHwnd);
|
|
static void DismissOnScreenKeyboard(HWND aHwnd);
|
|
};
|
|
|
|
} // namespace widget
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_widget_OSKInputPaneManager_h
|