summaryrefslogtreecommitdiff
path: root/morphic.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-09-07 09:12:00 +0200
committerGubolin <gubolin@fantasymail.de>2014-09-07 09:12:00 +0200
commitd5363e2cf35d69215904b1c899e4cafd0f1c632f (patch)
treecd0ebfc163daa508fea5e4ac7bea6f42aebcc4ab /morphic.js
parent5bd357806fb0f3d0a9556dfb718f53bfb6af4fbb (diff)
downloadsnap-d5363e2cf35d69215904b1c899e4cafd0f1c632f.tar.gz
snap-d5363e2cf35d69215904b1c899e4cafd0f1c632f.zip
show virtual keyboard in Android (offline app only) (fix #81)
Diffstat (limited to 'morphic.js')
-rw-r--r--morphic.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphic.js b/morphic.js
index 2a242f2..efdf139 100644
--- a/morphic.js
+++ b/morphic.js
@@ -10778,6 +10778,11 @@ WorldMorph.prototype.edit = function (aStringOrTextMorph) {
this.virtualKeyboard.style.top = this.cursor.top() + pos.y + "px";
this.virtualKeyboard.style.left = this.cursor.left() + pos.x + "px";
this.virtualKeyboard.focus();
+ if (cordova) {
+ if (cordova.plugins.SoftKeyboard) { // Android only
+ cordova.plugins.SoftKeyboard.show(); // Issue #81
+ }
+ }
}
if (MorphicPreferences.useSliderForInput) {