I have a content editable element that the user can click on to bring up the keyboard to edit. However, there is a return button on the keyboard rather than a done button. I want that to be a done button that simply closes the keyboard, rather than a return button that adds a line break or submits the form.
Is there an easy way to do this? Or should I set up a directive that montiors for a return key click and then disables/blurs the element? I’ve bound an ng-keyup event so far with some problems.
<span contenteditable="true" class="blanks" ng-blur="blurredWhy($event)" ng-focus="focusedWhy($event)" ng-bind="data.why" ng-keyup="disableReturnButton($event)"></span>