mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 21:08:34 +00:00
🐛 Fix CI
This commit is contained in:
parent
a12f9aa0eb
commit
917c03784b
@ -213,10 +213,6 @@ function _characterFromEvent(e) {
|
||||
return character;
|
||||
}
|
||||
|
||||
if (typeof e.key === "string") {
|
||||
return e.key.toLowerCase();
|
||||
}
|
||||
|
||||
// for non keypress events the special maps are needed
|
||||
if (_MAP[e.which]) {
|
||||
return _MAP[e.which];
|
||||
@ -227,6 +223,9 @@ function _characterFromEvent(e) {
|
||||
}
|
||||
|
||||
// if it is not in the special map
|
||||
if (typeof e.key === "string") {
|
||||
return e.key.toLowerCase();
|
||||
}
|
||||
|
||||
// with keydown and keyup events the character seems to always
|
||||
// come in as an uppercase character whether you are pressing shift
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user