Fix bug: delete last digit and add another one to same group
Fix bug: delete currently selected digit
Fix bug: simulate mouse button release when cursor leaves canvas