Skip to content

Commit

Permalink
Do not assume the state is 0 in the no modifier case (microsoft/vscod…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Oct 28, 2021
1 parent 78d8cfe commit 47dbdb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keyboard_x.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ napi_value _GetKeyMap(napi_env env, napi_callback_info info) {

key_event->keycode = native_keycode;
{
key_event->state = 0;
key_event->state = mask_provider->XStateFromKeyMod(0);
std::string value = GetStrFromXEvent(&event);
NAPI_CALL(env, napi_set_named_property_string_utf8(env, entry, "value", value.c_str()));
}
Expand Down

0 comments on commit 47dbdb6

Please sign in to comment.