Skip to content

Commit

Permalink
fix issue tuyenvm#29, tuyenvm#26
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyenvm committed Aug 1, 2019
1 parent f50b894 commit 12b63ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/OpenKey/engine/Engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 12b63ed

Please sign in to comment.