Instead of adding individual event listeners to each toolbar button simply add one to the toolbar. See: #1191
mentioned in issue #1480