summaryrefslogtreecommitdiff
path: root/fpdfsdk/cfx_systemhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/cfx_systemhandler.cpp')
-rw-r--r--fpdfsdk/cfx_systemhandler.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/fpdfsdk/cfx_systemhandler.cpp b/fpdfsdk/cfx_systemhandler.cpp
index 95a940d1ff..c5f53341e1 100644
--- a/fpdfsdk/cfx_systemhandler.cpp
+++ b/fpdfsdk/cfx_systemhandler.cpp
@@ -126,17 +126,13 @@ FX_SYSTEMTIME CFX_SystemHandler::GetLocalTime() {
}
bool CFX_SystemHandler::IsSHIFTKeyDown(uint32_t nFlag) const {
- return m_pEnv->FFI_IsSHIFTKeyDown(nFlag);
+ return !!m_pEnv->FFI_IsSHIFTKeyDown(nFlag);
}
bool CFX_SystemHandler::IsCTRLKeyDown(uint32_t nFlag) const {
- return m_pEnv->FFI_IsCTRLKeyDown(nFlag);
+ return !!m_pEnv->FFI_IsCTRLKeyDown(nFlag);
}
bool CFX_SystemHandler::IsALTKeyDown(uint32_t nFlag) const {
- return m_pEnv->FFI_IsALTKeyDown(nFlag);
-}
-
-bool CFX_SystemHandler::IsINSERTKeyDown(uint32_t nFlag) const {
- return m_pEnv->FFI_IsINSERTKeyDown(nFlag);
+ return !!m_pEnv->FFI_IsALTKeyDown(nFlag);
}