File: 0003_src-qml-GroupChatInfoPage.qml-Stop-using-the-key-man.patch

package info (click to toggle)
lomiri-messaging-app 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,440 kB
  • sloc: cpp: 1,338; python: 1,007; javascript: 136; makefile: 52
file content (39 lines) | stat: -rw-r--r-- 1,552 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 1a40f5269d5d6f318065e271bea6d9864df8b90e Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Wed, 21 Aug 2024 10:29:23 +0200
Subject: [PATCH] src/qml/GroupChatInfoPage.qml: Stop using the key
 manipulation feature from Lomiri.Keyboard QML module.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 src/qml/GroupChatInfoPage.qml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/qml/GroupChatInfoPage.qml b/src/qml/GroupChatInfoPage.qml
index ce76eb77..0660f31f 100644
--- a/src/qml/GroupChatInfoPage.qml
+++ b/src/qml/GroupChatInfoPage.qml
@@ -22,7 +22,6 @@ import Lomiri.Components.ListItems 1.3 as ListItems
 import Lomiri.Components.Popups 1.3
 import Lomiri.History 0.1
 import Lomiri.Contacts 0.1
-import Lomiri.Keyboard 0.1
 import Lomiri.Telephony 0.1
 
 Page {
@@ -320,7 +319,11 @@ Page {
                     }
                     readOnly: !chatEntry.canUpdateConfiguration
 
-                    InputMethod.extensions: { "enterKeyText": i18n.dtr("lomiri-messaging-app", "Rename") }
+                    property variant __inputMethodExtensions: {
+                        // TRANSLATORS: This is the text that will be used on the "return" key
+                        // for the virtual keyboard. This word must be less than 6 characters.
+                        "enterKeyText": i18n.dtr("lomiri-messaging-app", "Rename"),
+                    }
 
                     onAccepted: {
                         chatEntry.title = groupName.text
-- 
2.39.5