Skip to content

Commit

Permalink
feat: use shift+enter to run task instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mondaychen committed Apr 22, 2024
1 parent e2a9728 commit 10257e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/TaskUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const TaskUI = () => {
};

const onKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === "Enter" && !e.shiftKey) {
if (e.key === "Enter" && e.shiftKey) {
e.preventDefault();
runTask();
}
Expand Down

0 comments on commit 10257e8

Please sign in to comment.