Merging keyCode and keyIdentifier and adjusting the docs accordingly
This commit is contained in:
parent
5fff06d2c2
commit
14740eeb8a
4 changed files with 8 additions and 10 deletions
|
@ -73,7 +73,7 @@ ui::KeyboardCode KeyboardCodeFromCharCode(base::char16 c, bool* shifted) {
|
|||
}
|
||||
|
||||
// Return key code of the char.
|
||||
ui::KeyboardCode KeyboardCodeFromKeyIdentifier(std::string chr) {
|
||||
ui::KeyboardCode KeyboardCodeFromKeyIdentifier(const std::string& chr) {
|
||||
if (chr == "enter") return ui::VKEY_RETURN;
|
||||
if (chr == "backspace") return ui::VKEY_BACK;
|
||||
if (chr == "delete") return ui::VKEY_DELETE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue