typeahead: Rename e to event for legibility.

This commit is contained in:
evykassirer
2024-03-01 19:19:26 -08:00
committed by Tim Abbott
parent 6d30e3e01c
commit dc4244b9d8

View File

@@ -137,13 +137,13 @@ import {insertTextIntoField} from "text-field-edit";
import {get_string_diff} from "../../src/util"; import {get_string_diff} from "../../src/util";
!(function ($) { !(function ($) {
function get_pseudo_keycode(e) { function get_pseudo_keycode(event) {
const isComposing = (e.originalEvent && e.originalEvent.isComposing) || false; const isComposing = (event.originalEvent && event.originalEvent.isComposing) || false;
/* We treat IME compose enter keypresses as a separate -13 key. */ /* We treat IME compose enter keypresses as a separate -13 key. */
if (e.keyCode === 13 && isComposing) { if (event.keyCode === 13 && isComposing) {
return -13; return -13;
} }
return e.keyCode; return event.keyCode;
} }
/* TYPEAHEAD PUBLIC CLASS DEFINITION /* TYPEAHEAD PUBLIC CLASS DEFINITION