Skip to content

Commit

Permalink
[fix] 모달창이 떠있어도 엔터키가 입력되는 오류 수정 (#224)
Browse files Browse the repository at this point in the history
fix : 모달창이 떠있어도 엔터키가 입력되는 오류 수정
  • Loading branch information
Novrule authored Dec 14, 2023
1 parent ca6f969 commit 4f6a09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/BroadcastPage/BroadcastPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const BroadcastPage = () => {
}

const onEnter = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (event.nativeEvent.isComposing) {
if (event.nativeEvent.isComposing || settingModal || loginModal || viewerModal || confirmModal) {
return
} else if (event.key === 'Enter' && event.shiftKey === false) {
event.preventDefault()
Expand Down

0 comments on commit 4f6a09c

Please sign in to comment.