textbox visibility

This commit is contained in:
Thijs Wenker 2014-12-31 01:46:01 +01:00
parent 1365ecede3
commit a0e209276b

View file

@ -84,7 +84,8 @@ keyboard.onFullyLoaded = function() {
leftMargin: 0, leftMargin: 0,
font: {size: textFontSize}, font: {size: textFontSize},
text: "", text: "",
alpha: 0.8 alpha: 0.8,
visible: keyboard.visible
}); });
updateTextOverlay(); updateTextOverlay();
// the cursor is being loaded after the keyboard, else it will be on the background of the keyboard // the cursor is being loaded after the keyboard, else it will be on the background of the keyboard
@ -99,8 +100,8 @@ function keyPressEvent(event) {
keyboard.pressFocussedKey(); keyboard.pressFocussedKey();
} else if (event.key === ENTER_CHARCODE || event.key === RETURN_CHARCODE) { } else if (event.key === ENTER_CHARCODE || event.key === RETURN_CHARCODE) {
keyboard.toggle(); keyboard.toggle();
Overlays.editOverlay(text, {visible: keyboard.visible});
} }
} }
function keyReleaseEvent(event) { function keyReleaseEvent(event) {