Skip to content

Commit 87bf81c

Browse files
committed
Call out hack, fix lint
1 parent f155c65 commit 87bf81c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/input/Keyboard.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ export function evaluateKeyboardEvent(
9999
break;
100100
case 13:
101101
// return/enter
102-
if (ev.key == 'c' && ev.ctrlKey) {
103-
// Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware keyboard
102+
if (ev.key === 'c' && ev.ctrlKey) {
103+
// HACK: Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware
104+
// keyboard
104105
result.key = C0.ETX;
105106
} else {
106107
result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;

0 commit comments

Comments
 (0)