fixed edit mode on certain keyboards