Preventing rouge modals from popping up when hitting enter-key in settings section

closes #3352
- adding a ```type``` attribute to buttons inside form