diff --git a/build.gradle b/build.gradle index 696c47e87..b9858b63b 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ allprojects { appName = 'Shattered Pixel Dungeon' appPackageName = 'com.shatteredpixel.shatteredpixeldungeon' - appVersionCode = 864 + appVersionCode = 865 appVersionName = '3.2.2' appJavaCompatibility = JavaVersion.VERSION_11 diff --git a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java index 97558af83..904cb7a27 100644 --- a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java +++ b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.ios; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; +import com.badlogic.gdx.backends.iosrobovm.DefaultIOSInput; import com.badlogic.gdx.backends.iosrobovm.custom.HWMachine; import com.badlogic.gdx.backends.iosrobovm.objectal.OALSimpleAudio; import com.badlogic.gdx.graphics.Pixmap; @@ -119,12 +120,9 @@ public class IOSPlatformSupport extends PlatformSupport { } public void setOnscreenKeyboardVisible(boolean value, boolean multiline){ - if (multiline){ - //iOS needs 'email' input type to display enter/return key for multiline =S - Gdx.input.setOnscreenKeyboardVisible(value, Input.OnscreenKeyboardType.Email); - } else { - super.setOnscreenKeyboardVisible(value, multiline); - } + //iOS keyboard says 'done' even with this change, but the behaviour is correct at least + ((DefaultIOSInput)Gdx.input).setKeyboardCloseOnReturnKey(!multiline); + super.setOnscreenKeyboardVisible(value, multiline); } /* FONT SUPPORT */