fix caps-hold-placing on chrome
This commit is contained in:
parent
7bc46ac7a0
commit
715ba5efaf
|
@ -423,8 +423,12 @@ class PixelPlainterControls {
|
|||
}
|
||||
|
||||
onKeyUp(event: KeyboardEvent) {
|
||||
if (keycode(event) === 'shift') {
|
||||
this.holdPainting = false;
|
||||
switch (keycode(event)) {
|
||||
case 'shift':
|
||||
case 'caps lock':
|
||||
this.holdPainting = false;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user