Well, before returning True, change the `current` property of your
screen manager to be the right one, you'll want to maintain an history
of the visited screen, in a list, and pop the last one to put it back in
`current` when the user hit the back button.
On Wed, Oct 16, 2013 at 04:03:04PM -0700, Uxmar wrote:
> Hi tshirtman,
> *
> *
> I added return True so:
>
> def hook_keyboard(self, window, key, *largs):
> if key == 27: # BACK
> return True
> # Irrelevant code
> pass
> elif key in (282, 319): # SETTINGS
> # Irrelevant code
> pass
>
> and the application does not close.
>
> But, I need operate the button go back to android with kivy.
>
> That is, when I press the button to "go back" android native my application
> return to the previous screen
>
> You know how it is tshirtman?
>
> Thank you very much for your answer
>
>
> El mi�rcoles, 16 de octubre de 2013 18:13:54 UTC-4:30, tshirtman escribi�:
> > > escribi�:
> > > >
> > > > this is how my app works:
> > > >
> > > > from kivy.core.window import Window
> > > >
> > > > class StoryTreeApp(App):
> > > > use_kivy_settings = BooleanProperty(False)
> > > >
> > > > def build(self):
> > > > # Irrelevant code
> > > > Window.bind(on_keyboard=self.hook_keyboard)
> > > > return root
> > > >
> > > > def hook_keyboard(self, window, key, *largs):
> > > > if key == 27: # BACK
> > > > # Irrelevant code
> > > > elif key in (282, 319): # SETTINGS
> > > > # Irrelevant code
> > > >
> > > >
> > > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups "Kivy users support" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> > an email to
kivy-users+...@googlegroups.com <javascript:>.