[–] 1 point 1 day ago (11 children)

Making your way in the world today takes everything you've got. Taking a break from all your worries, sure would help a lot.

Wouldn't you like to get away?

Sometimes you want to go

Where everybody knows your name, and they're always glad you came. You wanna be where you can see, our troubles are all the same You wanna be where everybody knows Your name.

  • source
  • parent
  • context
  •  

    So I am trying to build a simple todo APP for mobile as a learning experience.

    I have a lineEdit which activates the virtual keyboard. This goes over the lineEdit.

    I read that I should get the keyboard height with displayserver.virtual_keyboard_height() on an focus_entered() signal which is emitted from lineEdit.

    When I try to do that, the value is 0. This is because the keyboard appears to slow. I put in a:

    await get_tree().create_timer(1).timeout

    Which gets the height of the keyboard but building in a 1 second delay can't possibly be the right solution here.

    My question is: how did you solve this problem? And is it possible to not bother wit that at all? Is there a option in the project settings that makes it that, when the keyboard appears the whole app gets pushed up?

    I don't really grasp how the keyboard interacts with the app. Is it considered an overlay or part of the app?

    view more: next ›