aboutsummaryrefslogtreecommitdiff
path: root/qml/ComposePane.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-10-31 11:25:55 +0300
committerlink2xt <link2xt@testrun.org>2021-10-31 11:25:55 +0300
commit255e157d00fa9117399a377ac3dd9d9c8977c4b5 (patch)
tree22ea601dbb9ad159b2caeb17047b1cd41e7f32a3 /qml/ComposePane.qml
parent48c2a5d7789d742631f8774ad8969d70e5ed0b2e (diff)
downloadkdeltachat-255e157d00fa9117399a377ac3dd9d9c8977c4b5.tar.gz
kdeltachat-255e157d00fa9117399a377ac3dd9d9c8977c4b5.zip
GIFs, display names on every message and more
- now we can view animated gifs ! - name are displayed on top of every message type (not just text messages and audio messages) This avoids some confusion in whether a message has been sent by us or not. - we fix the warnings of NON-NOTIFYABLE properties being used by adding one Q_PROPERTY: fileReadOnly, so we can use it to get the filename and not be bothered by console warnings. - we add some variables in Message.qml because some values were repeated and made more sense to put in a readonly var (maxH and maxW). - make scrollbar visible on hover. # Conflicts: # qml/ComposePane.qml
Diffstat (limited to 'qml/ComposePane.qml')
-rw-r--r--qml/ComposePane.qml22
1 files changed, 22 insertions, 0 deletions
diff --git a/qml/ComposePane.qml b/qml/ComposePane.qml
index 19d2da9..b2fcf88 100644
--- a/qml/ComposePane.qml
+++ b/qml/ComposePane.qml
@@ -29,6 +29,28 @@ Pane {
padding: 0
+ Shortcut {
+ sequence: "Ctrl+S"
+ onActivated: {
+ if (sendButton.enabled) {
+ sendButton.focus = true;
+ sendButton.clicked();
+ sendButton.focus = false;
+ }
+ }
+ }
+
+ Shortcut {
+ sequence: "Ctrl+O"
+ onActivated: {
+ if (attachButton.enabled) {
+ attachButton.focus = true;
+ attachButton.clicked();
+ attachButton.focus = false;
+ }
+ }
+ }
+
FileDialog {
id: attachFileDialog