Fixes keyboard dismissal when not selected for delete