Skip to content

Commit 7f329fe

Browse files
authored
perf - do not embedd unicode chars in sources (#178558)
1 parent 10295b5 commit 7f329fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/browser/actions/developerActions.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ class ToggleScreencastModeAction extends Action2 {
238238
}));
239239

240240
disposables.add(onKeyDown.event(e => {
241-
// allow-any-unicode-next-line
242-
if (e.key === 'Process' || /[------]/.test(e.key)) {
241+
if (e.key === 'Process' || /[\uac00-\ud787\u3131-\u314e\u314f-\u3163\u3041-\u3094\u30a1-\u30f4\u30fc\u3005\u3006\u3024\u4e00-\u9fa5]/u.test(e.key)) {
243242
if (e.code === 'Backspace') {
244243
imeBackSpace = true;
245244
} else if (!e.code.includes('Key')) {

0 commit comments

Comments
 (0)