Adding event to the middle mouse button click.

This is a continuation of https://github.com/modxcms/revolution/pull/449 in another realization.