Author Topic: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8  (Read 2522 times)

andrew99

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Hi

The soft keyboard orientation still behaves as if autorotation is enabled.
In Unity's Player Settings I've set the orientation to fixed (Landscape Left), and disabled the Accelerometer.
But even though the game's orientation is locked properly, the soft keyboard still rotates.
I haven't had any luck in finding any documentation which address this specific issue (perhaps my googling just sucks :P).
Apparently orientation lock issue is a thing in my QA side, so I'd really appreciate the help on how to fix this issue..

FYI, I'm using
- NGUI 3.5.1 (can't upgrade due to compatibility issues with some custom codes, but I've confirmed that this issue still happens in NGUI 3.7.4)
- Unity 4.5.4
- Visual Studio 2012 for Windows Phone Update 2

I've attached a screenshot of what the issue looks like on NGUI demo scene : Chat Window.
Hope someone can help with this. Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #1 on: October 16, 2014, 06:55:44 AM »
Anything related to where keyboard shows up is 100% Unity, so I can't suggest much.

andrew99

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #2 on: October 16, 2014, 07:30:54 AM »
Hi Aren,

Thanks for the fast reply.
So this is an issue with Unity?
Can't be helped then, I'll try asking in the Unity forum.
Thanks again!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #3 on: October 17, 2014, 04:30:24 AM »
Well, you can have a look inside the UIInput class to see if maybe I missed something when opening up the touch screen keyboard around line 642.

Marcin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #4 on: June 26, 2015, 04:39:07 AM »
@andrew99
Did You managed to fix this? (Or have any workaround?) I also have this problem and I also didnt found any solution for that.

andrew99

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #5 on: June 26, 2015, 06:19:35 AM »
Hi Marcin,

Apparently to lock orientations in Windows Phone (in this case the OS Keyboard) we have to set the orientation both in Unity's Player Settings, and also in the MainPage.xaml file generated in the Visual Studio Project. Inside the .xaml file there are "Orientation" and "SupportedOrientations" field which you can edit.
Hope this helps!

Marcin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: Soft Keyboard Orientation Not Locking Properly on Windows Phone 8
« Reply #6 on: June 26, 2015, 06:54:34 AM »
Great! It worked. Thank You very much andrew99. :)