fix Del key handling in simpletext, avoid crash