From 12b63ed7a9059ec1dd94d26d809a7bf729c1328e Mon Sep 17 00:00:00 2001 From: Tuyen Mai Date: Thu, 1 Aug 2019 14:26:15 +0700 Subject: [PATCH] fix issue #29, #26 --- Sources/OpenKey/engine/Engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/OpenKey/engine/Engine.cpp b/Sources/OpenKey/engine/Engine.cpp index 2a515f6..20ee9b0 100644 --- a/Sources/OpenKey/engine/Engine.cpp +++ b/Sources/OpenKey/engine/Engine.cpp @@ -917,7 +917,8 @@ void vKeyHandleEvent(const vKeyEvent& event, const bool& otherControlKey) { _isCaps = (capsStatus == 1 || //shift capsStatus == 2); //caps lock - if ((IS_NUMBER_KEY(data) && capsStatus == 1 && vInputType == vVNI) || otherControlKey || isWordBreak(event, state, data) || (_index == 0 && data == KEY_9)) { + if ((IS_NUMBER_KEY(data) && capsStatus == 1) + || otherControlKey || isWordBreak(event, state, data) || (_index == 0 && IS_NUMBER_KEY(data))) { hCode = vDoNothing; hBPC = 0; hNCC = 0;