Generic click handlers now ignore middle and right mouse button (fixes #2732) and added booleans for pre-IE10, pre-IE9, pre-IE8 and pre-IE7 to simplify the handlers