Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Virtual Keyboard can not be closed!?
Started by d.mach Jan 19 2020 02:43 AM

2 replies to this topic
keyboard closed problem stays on screen virtual

Best Answer agramonte , 19 January 2020 - 08:32 AM

I use a down arrow button sprite image. And when people touch it I call:

native.setKeyboardFocus( nil ) 

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

I have a strange problem with entering a text in a text field using a virtual keyboard on devices:

 

Players can enter a URL to download an external game level, but when the virtual keyboard is shown I can see a small keyboard button on an iPad which can close the virtual keyboard BUT on an iPhoneX this keyboard button is missing and clicking RETURN for example is NOT closing the keyboard. So the keyboard is open all the time and exactly hiding the button on screen which will start the game level. So the player get stuck because he has no option to close the keyboard.

 

Is there a way to show a keyboard close button on iPhoneX virtual keyboards also? How do you handle this problem?

 

Daniela

 



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,420 posts
  • Corona SDK

  Best Answer

I use a down arrow button sprite image. And when people touch it I call:

native.setKeyboardFocus( nil ) 

  • pixec likes this

[TOPIC: post.html]
#3

d.mach

[GLOBAL: userInfoPane.html]
d.mach
  • Contributor

  • 974 posts
  • Corona SDK

Thank you very much for the tip!




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: keyboard, closed, problem, stays, on screen, virtual