Revert bogus mouse mode fix - store editor state instead. This is slow.