Skip to content

Commit

Permalink
perf - do not embedd unicode chars in sources (#178558)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Mar 29, 2023
1 parent 10295b5 commit 7f329fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vs/workbench/browser/actions/developerActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ class ToggleScreencastModeAction extends Action2 {
}));

disposables.add(onKeyDown.event(e => {
// allow-any-unicode-next-line
if (e.key === 'Process' || /[가-힇ㄱ-ㅎㅏ-ㅣぁ-ゔァ-ヴー々〆〤一-龥]/.test(e.key)) {
if (e.key === 'Process' || /[\uac00-\ud787\u3131-\u314e\u314f-\u3163\u3041-\u3094\u30a1-\u30f4\u30fc\u3005\u3006\u3024\u4e00-\u9fa5]/u.test(e.key)) {
if (e.code === 'Backspace') {
imeBackSpace = true;
} else if (!e.code.includes('Key')) {
Expand Down

0 comments on commit 7f329fe

Please sign in to comment.