Skip to content

Submit task form on Enter in title field#303

Merged
dkhalife merged 1 commit intomainfrom
enter_submit
Apr 19, 2026
Merged

Submit task form on Enter in title field#303
dkhalife merged 1 commit intomainfrom
enter_submit

Conversation

@dkhalife
Copy link
Copy Markdown
Owner

When in the add/edit task screen on the Android app, pressing Enter (Done IME action) while focused on the task name field now submits the form, matching the Save button's behavior and respecting the same disabled state (blank title or saving in progress).

Copilot AI review requested due to automatic review settings April 19, 2026 05:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Android task add/edit screen so pressing the IME “Done” action while focused on the title field submits the form, matching the Save button behavior (including disabled conditions).

Changes:

  • Extracted form submission logic into a shared submitForm() lambda guarded by canSubmit.
  • Wired the title OutlinedTextField IME action (ImeAction.Done) to trigger submission via KeyboardActions(onDone = ...).
  • Reused the same submit path for the Save button click handler.
Show a summary per file
File Description
android/app/src/main/java/com/dkhalife/tasks/ui/screen/TaskFormScreen.kt Adds IME “Done” submit behavior by sharing Save-button submission logic and hooking it to keyboard actions.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@dkhalife dkhalife merged commit 55375e5 into main Apr 19, 2026
10 checks passed
@dkhalife dkhalife deleted the enter_submit branch April 19, 2026 05:27
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