Skip to content

Commit a2e1e5e

Browse files
authored
allow input elements to handle keydown events (microsoft#209364)
1 parent ae59067 commit a2e1e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ async function webviewPreloads(ctx: PreloadContext) {
341341
}
342342
const activeElement = window.document.activeElement;
343343
if (activeElement?.tagName === 'INPUT' || activeElement?.tagName === 'TEXTAREA') {
344-
e.preventDefault(); // We will handle selection in editor code.
344+
// The input element will handle this.
345345
return;
346346
}
347347

0 commit comments

Comments
 (0)