fix moving notes by arrow keys

This commit is contained in:
udf 2024-05-05 22:42:09 +02:00
parent d102578b54
commit 4fb368bebb
No known key found for this signature in database
GPG key ID: E94E4702E3C6D729

View file

@ -193,7 +193,7 @@ class SelectedState extends ActiveState {
[KEY_DOWN]: [0, delta], [KEY_DOWN]: [0, delta],
[KEY_RIGHT]: [delta, 0], [KEY_RIGHT]: [delta, 0],
}; };
if (Object.prototype.hasOwnProperty.call(offsetMap, e.witch)) { if (Object.prototype.hasOwnProperty.call(offsetMap, e.which)) {
e.stopPropagation(); e.stopPropagation();
e.stopImmediatePropagation(); e.stopImmediatePropagation();
e.preventDefault(); e.preventDefault();