Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Callback for showKeyboard?

edited May 2012 in Suggestions Posts: 502

Hi. It would be nice with a callback for showKeyboard, to know when the keyboard is hidden. I mean when you press the hide key on the keyboard.

showKeyboard(function () 
  -- called when hidden
end)

Currently I have to solve it by implementing a handler in my Scene class like this:

function Scene:showKeyboard(hideCallback)
  if self.hideCallback then self.hideCallback() end
  self.hideCallback = hideCallback
  showKeyboard()
end

But I don't know that the keyboard was hidden before it's shown again for another object I clicked on.

Sign In or Register to comment.