diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index 440701937..e5f117df0 100644 --- a/js/util.js +++ b/js/util.js @@ -55,10 +55,13 @@ $(document).ready(function(){ } function submitonreturn(event) { - if (event.keyCode == 13) { + if (event.keyCode == 13 || event.keyCode == 10) { + // iPhone sends \n not \r for 'return' $("#form_notice").submit(); event.preventDefault(); event.stopPropagation(); + $("#notice_data-text").blur(); + $("body").focus(); return false; } return true; |