Skip to content

Commit

Permalink
Enhancement: Add Tab key functionality to submit inline edits
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsadam committed Jan 8, 2025
1 parent b4fb5ee commit 6bb718e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/javascript/controllers/inline_edit_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default class extends Controller {
inputKeydown(event) {
if(event.key === "Escape") {
this.reset();
} else if(event.key === "Tab") {
event.preventDefault();
this.submit();
}
}
}

0 comments on commit 6bb718e

Please sign in to comment.