Revert of hotkey detection, removed menu hotkeys

- Holding hotkeys will no longer spam parent events rapidly, detects only
  the release
This commit is contained in:
Menithal 2017-02-18 18:33:00 +02:00
parent 0df6305f90
commit f3c806e910

View file

@ -1372,7 +1372,7 @@ var keyReleaseEvent = function (event) {
});
grid.setPosition(newPosition);
}
} else if (event.text === 'p' && event.isControl && !event.isAutoRepeat ) {
} else if (event.key === 80 && event.isControl && !event.isAutoRepeat ) {
if (event.isShifted) {
unparentSelectedEntities();
} else {