HUE-1247 [core] Modal submission with enter key

When shown the enter key is rewired to press the btn-primary or btn-danger of the modal
Added focus on the first available input field