write with siri
This commit is contained in:
@@ -650,6 +650,7 @@ private struct LineCommentBox: View {
|
|||||||
TextEditor(text: text)
|
TextEditor(text: text)
|
||||||
.font(Fonts.font(12))
|
.font(Fonts.font(12))
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
|
.writingToolsBehavior(.disabled)
|
||||||
.focused($focused)
|
.focused($focused)
|
||||||
.padding(.horizontal, 5)
|
.padding(.horizontal, 5)
|
||||||
.padding(.vertical, 4)
|
.padding(.vertical, 4)
|
||||||
|
|||||||
@@ -419,6 +419,7 @@ struct ComposerView: View {
|
|||||||
TextEditor(text: $text)
|
TextEditor(text: $text)
|
||||||
.font(Fonts.font(13))
|
.font(Fonts.font(13))
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
|
.writingToolsBehavior(.disabled)
|
||||||
.focused($focused)
|
.focused($focused)
|
||||||
.focusedValue(\.composer, ComposerTarget(paste: { pb in store.images.add(draftKey, pasteboard: pb, overlays) }))
|
.focusedValue(\.composer, ComposerTarget(paste: { pb in store.images.add(draftKey, pasteboard: pb, overlays) }))
|
||||||
.onKeyPress(.return, phases: .down) { press in
|
.onKeyPress(.return, phases: .down) { press in
|
||||||
|
|||||||
@@ -467,6 +467,7 @@ private struct TextEntry: View {
|
|||||||
TextEditor(text: text)
|
TextEditor(text: text)
|
||||||
.font(Fonts.font(13))
|
.font(Fonts.font(13))
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
|
.writingToolsBehavior(.disabled)
|
||||||
.focused($editing)
|
.focused($editing)
|
||||||
.disabled(model.busy)
|
.disabled(model.busy)
|
||||||
.focusedValue(\.composer, ComposerTarget(paste: { pb in store.images.add(key, pasteboard: pb, overlays) }))
|
.focusedValue(\.composer, ComposerTarget(paste: { pb in store.images.add(key, pasteboard: pb, overlays) }))
|
||||||
|
|||||||
Reference in New Issue
Block a user