comparison cagou/core/cagou_main.py @ 276:a0835f0212d8

chat: multi-lines input: - text input is now multi-lines and grows with the text (up to a max) - on touch devices (i.e. on Android), an icon is added to the right to send the message, allowing to use virtual enter key for multi-lines messages
author Goffi <goffi@goffi.org>
date Wed, 20 Mar 2019 09:29:44 +0100
parents 7d5297984191
children b0461363bc65
comparison
equal deleted inserted replaced
275:1f88e7781fd0 276:a0835f0212d8
489 self.bridge.getVersion(callback=self._getVersionCb) 489 self.bridge.getVersion(callback=self._getVersionCb)
490 self.app.initFrontendState() 490 self.app.initFrontendState()
491 self.postInit() 491 self.postInit()
492 492
493 def postInit(self, dummy=None): 493 def postInit(self, dummy=None):
494 # FIXME: resize seem to bug on android, so we use below_target for now 494 # FIXME: resize doesn't work with SDL2 on android, so we use below_target for now
495 self.app.root_window.softinput_mode = "below_target" 495 self.app.root_window.softinput_mode = "below_target"
496 profile_manager = self.app._profile_manager 496 profile_manager = self.app._profile_manager
497 del self.app._profile_manager 497 del self.app._profile_manager
498 super(Cagou, self).postInit(profile_manager) 498 super(Cagou, self).postInit(profile_manager)
499 499