mirror of https://github.com/zulip/zulip.git
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:
parent
03c70cbed5
commit
9def249af1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue