Call out hack, fix lint
This commit is contained in:
@@ -99,8 +99,9 @@ export function evaluateKeyboardEvent(
|
|||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
// return/enter
|
// return/enter
|
||||||
if (ev.key == 'c' && ev.ctrlKey) {
|
if (ev.key === 'c' && ev.ctrlKey) {
|
||||||
// Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware keyboard
|
// HACK: Safari on iPad, iOS, AppleVisionPro sends key 13 when typing ctrl-c on hardware
|
||||||
|
// keyboard
|
||||||
result.key = C0.ETX;
|
result.key = C0.ETX;
|
||||||
} else {
|
} else {
|
||||||
result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;
|
result.key = ev.altKey ? C0.ESC + C0.CR : C0.CR;
|
||||||
|
|||||||
Reference in New Issue
Block a user