From 2e65c2fe3fe72b23dd23854a84696d5f93d91545 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 10 Nov 2011 11:24:42 +0100 Subject: [PATCH] Fix: Go now removes keyboard on iPhone --- www/iphone/example_client.js | 10 +++++----- www/iphone/index.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/iphone/example_client.js b/www/iphone/example_client.js index fb42b3f..18feaa9 100644 --- a/www/iphone/example_client.js +++ b/www/iphone/example_client.js @@ -57,7 +57,7 @@ function loginFormSubmit() { authCb, authCb); } -function handleKeyPress(e, formId, focusId) +function handleKeyPress(e) { var key; if(window.event) @@ -67,10 +67,10 @@ function handleKeyPress(e, formId, focusId) if(key == 13 || key == 10) { - onFormSubmitEventHandler(); - focusElement = document.getElementById(focusId); - if (focusElement) - focusElement.focus(); + button = document.getElementById('button'); + button.focus(); + button.click(); + return false; } else diff --git a/www/iphone/index.html b/www/iphone/index.html index dd565de..c12bac1 100644 --- a/www/iphone/index.html +++ b/www/iphone/index.html @@ -55,7 +55,7 @@ --> -- 1.7.10.4