We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c86679 commit 215e1e9Copy full SHA for 215e1e9
1 file changed
apps/sim/app/w/[id]/workflow.tsx
@@ -203,6 +203,17 @@ function WorkflowContent() {
203
204
const handleKeyDown = (event: KeyboardEvent) => {
205
if (event.shiftKey && event.key === 'L' && !event.ctrlKey && !event.metaKey) {
206
+ // Don't trigger if user is typing in an input, textarea, or contenteditable element
207
+ const activeElement = document.activeElement
208
+ const isEditableElement =
209
+ activeElement instanceof HTMLInputElement ||
210
+ activeElement instanceof HTMLTextAreaElement ||
211
+ activeElement?.hasAttribute('contenteditable')
212
+
213
+ if (isEditableElement) {
214
+ return // Allow normal typing behavior
215
+ }
216
217
event.preventDefault()
218
219
if (cleanup) cleanup()
0 commit comments