When switching from Custom direction to Select reference mode do not jump back to Custom direction mode after selecting an edge