ios: submit quick questions with return
This commit is contained in:
@@ -102,13 +102,12 @@ struct SybilQuickQuestionView: View {
|
|||||||
set: { viewModel.updateQuickQuestionPrompt($0) }
|
set: { viewModel.updateQuickQuestionPrompt($0) }
|
||||||
),
|
),
|
||||||
selection: $promptSelection,
|
selection: $promptSelection,
|
||||||
axis: .vertical
|
axis: .horizontal
|
||||||
)
|
)
|
||||||
.focused($promptFocused)
|
.focused($promptFocused)
|
||||||
.font(.body)
|
.font(.body)
|
||||||
.textInputAutocapitalization(.sentences)
|
.textInputAutocapitalization(.sentences)
|
||||||
.autocorrectionDisabled(false)
|
.autocorrectionDisabled(false)
|
||||||
.lineLimit(1 ... 6)
|
|
||||||
.submitLabel(.send)
|
.submitLabel(.send)
|
||||||
.onSubmit(submitQuestion)
|
.onSubmit(submitQuestion)
|
||||||
.padding(.horizontal, 12)
|
.padding(.horizontal, 12)
|
||||||
|
|||||||
+6
-2
@@ -17,7 +17,9 @@ Hiding the panel preserves the draft and answer and lets an in-flight answer fin
|
|||||||
**Open in Chat** saves the question and answer in the regular workspace.
|
**Open in Chat** saves the question and answer in the regular workspace.
|
||||||
|
|
||||||
The regular Mac chat/search composer uses the same Return/Shift+Return rules.
|
The regular Mac chat/search composer uses the same Return/Shift+Return rules.
|
||||||
Holding Return does not repeatedly submit. The iOS software keyboard is unchanged.
|
Holding Return does not repeatedly submit. On iOS, Return submits from Quick
|
||||||
|
Question, while the normal chat/search composer continues to use Return for a
|
||||||
|
new line.
|
||||||
|
|
||||||
Closing the last Mac window leaves Sybil running, so Option+Space still works.
|
Closing the last Mac window leaves Sybil running, so Option+Space still works.
|
||||||
Use **Sybil → Quit Sybil** or **Command+Q** to quit the application. The Catalyst
|
Use **Sybil → Quit Sybil** or **Command+Q** to quit the application. The Catalyst
|
||||||
@@ -66,7 +68,9 @@ action, and does not build or embed the macOS helper.
|
|||||||
answer remain available. Reopen the workspace from the panel, then explicitly
|
answer remain available. Reopen the workspace from the panel, then explicitly
|
||||||
quit with Command+Q. Rebuild and relaunch after changing lifecycle plist keys.
|
quit with Command+Q. Rebuild and relaunch after changing lifecycle plist keys.
|
||||||
- In both Mac and iOS Quick Question, reopen an existing prompt and type to replace
|
- In both Mac and iOS Quick Question, reopen an existing prompt and type to replace
|
||||||
it. In the Mac workspace, verify Return submits and Shift+Return adds a newline.
|
it. On iOS, verify Return submits Quick Question while Return in the normal
|
||||||
|
prompt adds a newline. In the Mac workspace, verify Return submits and
|
||||||
|
Shift+Return adds a newline.
|
||||||
- Check Command+N both with a workspace open and after closing every workspace.
|
- Check Command+N both with a workspace open and after closing every workspace.
|
||||||
Command+Shift+N must open another window even when one already exists, and
|
Command+Shift+N must open another window even when one already exists, and
|
||||||
Command+Option+N must start a search without opening a window.
|
Command+Option+N must start a search without opening a window.
|
||||||
|
|||||||
Reference in New Issue
Block a user