handle mouse events other than scrolling
ignore all mouse events in editor mode
Merge pull request #177 from hrzhu/fix-mouse-click

turses crashes on mouse click(other than scrolling)