Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI Changes with Text Area (Shift + Enter, Starting and Continuing Conversation) #1001

Merged
merged 6 commits into from
Oct 1, 2024

Conversation

kateliu20
Copy link
Contributor

@kateliu20 kateliu20 commented Oct 1, 2024

From the Jewel update, there were some changes to TextArea API, so I modified it to handle a Shift + Enter and Enter functionality. Shift + Enter will add a new line without sending, while Enter will send the message. I set the keyboardOptions = KeyboardOptions(imeAction = ImeAction.None) as a way to remove the default enter functionality TextArea has.

Screenshare.-.2024-10-01.2_50_35.PM.mp4

UPDATE: I also added the functionality where if the conversation started already, then it will say "continue the conversation" instead of 'start" every time. The cursor looks off but I asked in #jewel in the kotlin-lang workspace for any tips to remedy that.

Screenshare.-.2024-10-01.3_51_25.PM.mp4

(also still waiting on calling the API, which is why that isn't here)

@kateliu20 kateliu20 marked this pull request as ready for review October 1, 2024 18:52
@kateliu20 kateliu20 changed the title Add Shift Enter to Text Area Add Shift + Enter to Text Area Oct 1, 2024
@kateliu20 kateliu20 changed the title Add Shift + Enter to Text Area UI Changes with Text Area (Shift + Enter, Starting and Continuing Conversation) Oct 1, 2024
@kateliu20 kateliu20 added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit 3fbd389 Oct 1, 2024
3 checks passed
@kateliu20 kateliu20 deleted the kl/shift_enter_aibot branch October 1, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants