mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Clean up comments a little.
This commit is contained in:
parent
df09e14d53
commit
afffdfdddd
1 changed files with 4 additions and 4 deletions
|
@ -152,7 +152,7 @@ var Key = new function() {
|
||||||
charLookup[key] || (key.length > 1 ? '' : key), event);
|
charLookup[key] || (key.length > 1 ? '' : key), event);
|
||||||
} else {
|
} else {
|
||||||
// If it wasn't handled yet, store the downKey so keypress can
|
// If it wasn't handled yet, store the downKey so keypress can
|
||||||
// compare and handle buggy edge cases, known to happen ifn
|
// compare and handle buggy edge cases, known to happen in
|
||||||
// Chrome on Ubuntu.
|
// Chrome on Ubuntu.
|
||||||
downKey = key;
|
downKey = key;
|
||||||
}
|
}
|
||||||
|
@ -167,9 +167,9 @@ var Key = new function() {
|
||||||
character = code >= 32 ? String.fromCharCode(code)
|
character = code >= 32 ? String.fromCharCode(code)
|
||||||
: key.length > 1 ? '' : key;
|
: key.length > 1 ? '' : key;
|
||||||
if (key !== downKey) {
|
if (key !== downKey) {
|
||||||
// This shouldn't ever happen, but it does in Chrome on
|
// This shouldn't happen, but it does in Chrome on Ubuntu.
|
||||||
// Ubuntu. Luckily for us in the cases where it does happen,
|
// In these cases, character is actually the key we want!
|
||||||
// character is actually the key we want! See #881
|
// See #881
|
||||||
key = character;
|
key = character;
|
||||||
}
|
}
|
||||||
handleKey(true, key, character, event);
|
handleKey(true, key, character, event);
|
||||||
|
|
Loading…
Reference in a new issue