We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0805c2f commit 429b05eCopy full SHA for 429b05e
src/main/client/src/component/Chat.jsx
@@ -134,6 +134,7 @@ export const Chat = ({chatId, className}) => {
134
<input
135
className="w-full px-1 py-1 border border-gray-500 bg-stone-800 text-stone-100 focus:outline-none"
136
type="text"
137
+ id="chat-input"
138
name="message"
139
/>
140
</form>
src/main/client/src/feature/game/Game.jsx
@@ -123,6 +123,10 @@ function Board({gameState, setGameState}) {
123
124
useEffect(() => {
125
let onKeyDown = (e) => {
126
+ let activeElement = window.document.activeElement
127
+ if (activeElement?.id === "chat-input") {
128
+ return
129
+ }
130
if (e.ctrlKey || e.shiftKey) {
131
setCtrlKeyDown(true)
132
}
0 commit comments