Android Back button like home button #212
No hay revisores
Etiquetas
Sin etiquetas
1app
2 apps
accessibility
android
before-beta
bug
duplicate
enhancement
first-contact
fixed
help wanted
infrastructure
invalid
low-priority
must-fix
needs testing
nice-to-have
question
tor
user-feedback
wontfix
Sin Milestone
No asignados
3 participantes
Fecha de vencimiento
Sin fecha de vencimiento.
Dependencias
No se han establecido dependencias.
Referencia: cwtch.im/ui#212
Cargando…
Referencia en una nueva incidencia
No se ha proporcionado una descripción.
Eliminar rama ":androidBack "
Eliminar una rama es permanente. Aunque la rama eliminada puede continuar existiendo durante un corto tiempo antes de que sea eliminada, en la mayoría de los casos NO PUEDE deshacerse. ¿Continuar?
Android back button default behaviour on root pane is to exit that app. That's not ideal so I've captured it and redirected to a home button like behaviour
It might be nice to have it do pane switching when not at root?
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/318
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/319
updated back button handling (not very robust but i'm planning a layout manager change that will break this anyway so it's fine for now):
Keys.onPressed: {
if (event.key == Qt.Key_Back) {
event.accepted = true
if (theStack.currentIndex == theStack.emptyPane) {
androidCwtchActivity.rootHomeButtonHandle()
} else if (theStack.currentIndex == theStack.userProfilePane || theStack.currentIndex == theStack.groupProfilePane) {
theStack.currentIndex = theStack.messagePane
} else {
theStack.currentIndex = theStack.emptyPane
}
}
}
'''
@ -14,2 +15,4 @@
_ func(string) `slot:"updateAndroidNotification"`
_ func() `signal:"rootHomeButtonHandle,auto""`
remove double-double-quote near eol
added
fixed!
thanks
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/333
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/332
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/335
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/334