What event happened first In Jane Eyre?

She is locked into a "haunted room".