Skip to content

Commit 8fa48dd

Browse files
committed
Support multi-line entering
1 parent b96732d commit 8fa48dd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

frontend/src/components/Input.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ textarea {
88
font-size: 1rem;
99
line-height: 1.5rem;
1010
resize: none;
11+
max-height: 300px;
1112
}
1213

1314
textarea:focus {

frontend/src/components/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function Input(props: { onSendMessage: any, onStartUpload: any, o
6565
};
6666

6767
const handleKeyDown = (e: any) => {
68-
if (e.key === "Enter") {
68+
if (e.key === "Enter" && e.shiftKey === false) {
6969
e.preventDefault();
7070
handleSendMessage();
7171
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='gpt_code_ui',
10-
version='0.42.18',
10+
version='0.42.19',
1111
description="An Open Source version of ChatGPT Code Interpreter",
1212
long_description=long_description,
1313
long_description_content_type='text/markdown', # This field specifies the format of the `long_description`.

0 commit comments

Comments
 (0)