typeahead: Fix bug where typeahead showed momentarily on shift + tab.

Break on `keyup` for case of `shift` key, instead of letting it trigger
the typeahead.

Fixes: #24152.
This commit is contained in:
N-Shar-ma 2023-01-26 14:36:34 +05:30 committed by Tim Abbott
parent 03c70cbed5
commit 9def249af1
1 changed files with 5 additions and 0 deletions

View File

@ -475,6 +475,11 @@ import {get_string_diff} from "../../js/util";
} }
break break
// to stop typeahead from showing up momentarily
// when shift + tabbing to a field with typeahead
case 16: // shift
break
default: default:
var hideOnEmpty = false var hideOnEmpty = false
if (e.keyCode === 8 && this.options.helpOnEmptyStrings) { // backspace if (e.keyCode === 8 && this.options.helpOnEmptyStrings) { // backspace