File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed
Riot.xcworkspace/xcshareddata/swiftpm
RiotSwiftUI/Modules/Room/Composer/View Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 50
50
"kind" : " remoteSourceControl" ,
51
51
"location" : " https://github.com/matrix-org/matrix-wysiwyg-composer-swift" ,
52
52
"state" : {
53
- "revision" : " 0aa1308c43451fd077e332f72d6a32135f258834 " ,
54
- "version" : " 2.19 .0"
53
+ "revision" : " f788fe2482c0b89019f679a1f43dccf9c25a0782 " ,
54
+ "version" : " 2.29 .0"
55
55
}
56
56
},
57
57
{
Original file line number Diff line number Diff line change @@ -9599,15 +9599,15 @@ public class VectorL10n: NSObject {
9599
9599
public static var wysiwygComposerFormatActionQuote : String {
9600
9600
return VectorL10n . tr ( " Vector " , " wysiwyg_composer_format_action_quote " )
9601
9601
}
9602
- /// Apply underline format
9602
+ /// Apply strikethrough format
9603
9603
public static var wysiwygComposerFormatActionStrikethrough : String {
9604
9604
return VectorL10n . tr ( " Vector " , " wysiwyg_composer_format_action_strikethrough " )
9605
9605
}
9606
9606
/// Decrease indentation
9607
9607
public static var wysiwygComposerFormatActionUnIndent : String {
9608
9608
return VectorL10n . tr ( " Vector " , " wysiwyg_composer_format_action_un_indent " )
9609
9609
}
9610
- /// Apply strikethrough format
9610
+ /// Apply underline format
9611
9611
public static var wysiwygComposerFormatActionUnderline : String {
9612
9612
return VectorL10n . tr ( " Vector " , " wysiwyg_composer_format_action_underline " )
9613
9613
}
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ struct Composer: View {
137
137
placeholder: viewModel. viewState. placeholder ?? " " ,
138
138
viewModel: wysiwygViewModel,
139
139
itemProviderHelper: nil ,
140
- keyCommandHandler : handleKeyCommand ,
140
+ keyCommands : keyCommands ,
141
141
pasteHandler: nil
142
142
)
143
143
. clipped ( )
@@ -228,15 +228,13 @@ struct Composer: View {
228
228
}
229
229
}
230
230
231
- func handleKeyCommand( _ keyCommand: WysiwygKeyCommand ) -> Bool {
232
- switch keyCommand {
233
- case . enter:
234
- sendMessageAction ( wysiwygViewModel. content)
235
- wysiwygViewModel. clearContent ( )
236
- return true
237
- case . shiftEnter:
238
- return false
239
- }
231
+ var keyCommands : [ WysiwygKeyCommand ] {
232
+ [
233
+ . enter {
234
+ sendMessageAction ( wysiwygViewModel. content)
235
+ wysiwygViewModel. clearContent ( )
236
+ }
237
+ ]
240
238
}
241
239
242
240
/// Computes the total height of the composer (excluding the RTE formatting bar).
Original file line number Diff line number Diff line change
1
+ Fix dictation when using the Rich Text Editor
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ packages:
59
59
branch : 0.0.1
60
60
WysiwygComposer :
61
61
url : https://github.com/matrix-org/matrix-wysiwyg-composer-swift
62
- version : 2.19 .0
62
+ version : 2.29 .0
63
63
DeviceKit :
64
64
url : https://github.com/devicekit/DeviceKit
65
65
majorVersion : 4.7.0
You can’t perform that action at this time.
0 commit comments