Android Back button like home button #212
Keine Reviewer
Label
Kein Label
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
Kein Meilenstein
Niemand zuständig
3 Beteiligte
Fällig am
Kein Fälligkeitsdatum gesetzt.
Abhängigkeiten
Keine Abhängigkeiten gesetzt.
Referenz: cwtch.im/ui#212
Laden…
In neuem Issue referenzieren
Keine Beschreibung angegeben.
Branch ":androidBack" löschen
Das Löschen eines Branches ist permanent. Obwohl der Branch für eine kurze Zeit weiter existieren könnte, kann diese Aktion in den meisten Fällen NICHT rückgängig gemacht werden. Fortfahren?
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