hide keyboard after submit

This commit is contained in:
Thijs Wenker 2014-12-31 01:49:01 +01:00
parent a0e209276b
commit 33a4f80300

View file

@ -44,7 +44,7 @@ function updateTextOverlay() {
var maxFontSize = 140;
textFontSize = (suggestedFontSize > maxFontSize) ? maxFontSize : suggestedFontSize;
var topMargin = (250 - textFontSize) / 4;
Overlays.editOverlay(text, {text: locationURL, font: {size: textFontSize}, topMargin: topMargin});
Overlays.editOverlay(text, {text: locationURL, font: {size: textFontSize}, topMargin: topMargin, visible: keyboard.visible});
maxLineWidth = Overlays.textSize(text, locationURL).width;
Overlays.editOverlay(text, {leftMargin: (windowDimensions.x - maxLineWidth) / 2});
}
@ -65,6 +65,7 @@ keyboard.onKeyRelease = function(event) {
print("going to hifi://" + locationURL);
location = "hifi://" + locationURL;
locationURL = "";
keyboard.hide();
updateTextOverlay();
}
}