Android Back button like home button #212
レビューアなし
ラベル
ラベルなし
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
マイルストーンなし
担当者なし
3 人の参加者
期日
期日は未設定です。
依存関係
依存関係が設定されていません。
リファレンス: cwtch.im/ui#212
読み込み中…
新しいイシューから参照
説明はありません。
ブランチ ":androidBack" の削除
ブランチの削除は恒久的です。 実際に削除されるまでの短い期間、ブランチが存在したままになることもありますが、たいていは元に戻すことはできません。 続行しますか?
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