Call out hack, fix lint

This commit is contained in:
Daniel Imms
2026-03-09 13:44:02 +09:00
parent f155c65e5a
commit 87bf81cf96
+3 -2
View File
@@ -99,8 +99,9 @@ export function evaluateKeyboardEvent(
break;
case 13:
// return/enter
if (ev.key == 'c' && ev.ctrlKey) {
// Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware keyboard
if (ev.key === 'c' && ev.ctrlKey) {
// HACK: Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware
// keyboard
result.key = C0.ETX;
} else {
result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;