calblueprint / CRT

California Rangeland Trust
7 stars 1 forks source link

On hitting enter, save the DataValue. #143

Closed chenhoward closed 8 years ago

chenhoward commented 8 years ago

Currently when editing a box, if the user presses enter, a new line appears (which causes the bug in #142 ). Instead, we should intercept the enter key, and if you are focused in a data value input box, we should prevent the default action, fire a request to save, and unfocus the box.