Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85813670
D373.1792714655.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
795 B
Referenced Files
None
Subscribers
None
D373.1792714655.diff
View Options
diff --git a/src/contents/ui/Main.qml b/src/contents/ui/Main.qml
--- a/src/contents/ui/Main.qml
+++ b/src/contents/ui/Main.qml
@@ -234,6 +234,20 @@
pageStack.initialPage: Qt.resolvedUrl("LoginPage.qml")
+ pageStack.Keys.onShortcutOverride: (event) => {
+ if (Qt.platform.os === 'android' && event.key === Qt.Key_Back
+ && pageStack.currentIndex === 0 && pageStack.layers.depth <= 1) {
+ event.accepted = true;
+ }
+ }
+ pageStack.Keys.onReleased: (event) => {
+ if (Qt.platform.os === 'android' && event.key === Qt.Key_Back
+ && pageStack.currentIndex === 0 && pageStack.layers.depth <= 1) {
+ event.accepted = true;
+ Qt.quit();
+ }
+ }
+
property var emptyPage: Kirigami.Page {
title: l10n.get('empty-room-page-title')
Label {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 22, 5:17 PM (23 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1790555
Default Alt Text
D373.1792714655.diff (795 B)
Attached To
Mode
D373: Quit from the root page with the back button/gesture on Android
Attached
Detach File
Event Timeline