Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code to handle sending code on
"Shift+Enter" key combination This commit refactors the code in the `Editor` component to handle sending code when the "Shift+Enter" key combination is pressed. Previously, pressing "Enter" would only add a new line, but now, when the "Shift" key is held and "Enter" is pressed, the `handleSendCode` function is called. This improvement enhances the user experience by providing a convenient way to send code without having to manually click the send button. The changes include adding event listeners for the "Shift" key and "Enter" key, updating the `handleKeydown` and `handleKeyUp` functions, and modifying the send button style to reflect whether the "Shift" key is currently held down. No issues are fixed or referenced in this commit.
- Loading branch information