typeahead: Use !== instead of !=.

This commit is contained in:
evykassirer
2024-03-01 14:07:09 -08:00
committed by Tim Abbott
parent 7ccb833b35
commit bcdde201ec

View File

@@ -458,7 +458,7 @@ import {get_string_diff} from "../../src/util";
maybeStopAdvance(e) {
const pseudo_keycode = get_pseudo_keycode(e);
if (
(this.options.stopAdvance || (pseudo_keycode != 9 && pseudo_keycode != 13)) &&
(this.options.stopAdvance || (pseudo_keycode !== 9 && pseudo_keycode !== 13)) &&
$.inArray(e.keyCode, this.options.advanceKeyCodes)
) {
e.stopPropagation();