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
|
@ -164,7 +164,7 @@ bool Converter<blink::WebKeyboardEvent>::FromV8(
|
|||
|
||||
if (dict.Get("keyCode", &code))
|
||||
out->windowsKeyCode = atom::KeyboardCodeFromCharCode(code, &shifted);
|
||||
else if (dict.Get("keyIdentifier", &identifier))
|
||||
else if (dict.Get("keyCode", &identifier))
|
||||
out->windowsKeyCode = atom::KeyboardCodeFromKeyIdentifier(
|
||||
base::StringToLowerASCII(identifier));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue