Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoprog committed Jan 10, 2018
1 parent e813900 commit a7f26e1
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/gui/gui_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ void System::updateInput()
static bool mouseWasDown = false;

static std::vector<std::string> chars {
"qwertyuiopasdfghjklzxcvbnm1234567890_+[]/<> '",
"QWERTYUIOPASDFGHJKLZXCVBNM!@#$%^&*()-={}?,. \""
"qwertyuiopasdfghjklzxcvbnm1234567890_+[]/<> ;'",
"QWERTYUIOPASDFGHJKLZXCVBNM!@#$%^&*()-={}?,. :\""
};

static int charsCount = chars[0].length();
Expand Down Expand Up @@ -197,14 +197,10 @@ void System::updateInput()
key_event.native_key_code = key.nativeCode;
key_event.windows_key_code = key.windowsCode;
browser->GetHost()->SendKeyEvent(key_event);

if(key.character)
{
key_event.type = KEYEVENT_CHAR;
key_event.character = key.character;
key_event.unmodified_character = key.character;
browser->GetHost()->SendKeyEvent(key_event);
}
key_event.type = KEYEVENT_CHAR;
key_event.character = key.character;
key_event.unmodified_character = key.character;
browser->GetHost()->SendKeyEvent(key_event);
}
}
}
Expand Down

0 comments on commit a7f26e1

Please sign in to comment.