Add preventDefault where the toolbar needs them.