summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_wnd.h
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.h')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_wnd.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h
index 56fbb21baa..b22c5dba21 100644
--- a/fpdfsdk/pdfwindow/cpwl_wnd.h
+++ b/fpdfsdk/pdfwindow/cpwl_wnd.h
@@ -15,6 +15,7 @@
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_basic.h"
#include "core/fxge/cfx_color.h"
+#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_widget.h"
#include "fpdfsdk/pdfwindow/cpwl_timer.h"
#include "fpdfsdk/pdfwindow/cpwl_timer_handler.h"
@@ -298,9 +299,15 @@ class CPWL_Wnd : public CPWL_TimerHandler, public CFX_Observable<CPWL_Wnd> {
bool IsWndCaptureKeyboard(const CPWL_Wnd* pWnd) const;
const CPWL_Wnd* GetRootWnd() const;
- bool IsCTRLpressed(uint32_t nFlag) const;
- bool IsSHIFTpressed(uint32_t nFlag) const;
- bool IsALTpressed(uint32_t nFlag) const;
+ static bool IsCTRLpressed(uint32_t nFlag) {
+ return CPDFSDK_FormFillEnvironment::IsCTRLKeyDown(nFlag);
+ }
+ static bool IsSHIFTpressed(uint32_t nFlag) {
+ return CPDFSDK_FormFillEnvironment::IsSHIFTKeyDown(nFlag);
+ }
+ static bool IsALTpressed(uint32_t nFlag) {
+ return CPDFSDK_FormFillEnvironment::IsALTKeyDown(nFlag);
+ }
private:
CFX_PointF ParentToChild(const CFX_PointF& point) const;