Detect mouse button and disable context menu on canvas