We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7b35d commit 6202032Copy full SHA for 6202032
src/main.cc
@@ -496,7 +496,7 @@ Napi::Number _keyToggle(const Napi::CallbackInfo &info)
496
MMKeyFlags flags = MOD_NONE;
497
MMKeyCode key;
498
499
- bool down;
+ bool down = false;
500
501
//Get arguments from JavaScript.
502
std::string keyName = info[0].As<Napi::String>();
src/win32/keypress.c
@@ -167,6 +167,8 @@ void typeString(const char *str)
167
c3 = (*str++) & 0x3F;
168
n = ((c & 0x07) << 18) | (c1 << 12) | (c2 << 6) | c3;
169
}
170
+ else
171
+ continue; /* ignore invalid UTF-8 */
172
173
toggleUniKey(n, true);
174
toggleUniKey(n, false);
0 commit comments