mirror of https://github.com/zulip/zulip.git
Revert "typeahead: Fix bug where typeahead showed momentarily on shift + tab."
This reverts commit fa37befe3c
, which broke
the topic typeahead after a complete stream name.
This commit is contained in:
parent
6c82772e15
commit
b406cc84ff
|
@ -439,6 +439,7 @@ import {get_string_diff} from "../../src/util";
|
||||||
, keydown: function (e) {
|
, keydown: function (e) {
|
||||||
const pseudo_keycode = get_pseudo_keycode(e);
|
const pseudo_keycode = get_pseudo_keycode(e);
|
||||||
if (this.trigger_selection(e)) {
|
if (this.trigger_selection(e)) {
|
||||||
|
if (!this.shown) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
this.select(e);
|
this.select(e);
|
||||||
}
|
}
|
||||||
|
@ -473,11 +474,6 @@ import {get_string_diff} from "../../src/util";
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
||||||
// to stop typeahead from showing up momentarily
|
|
||||||
// when shift + tabbing to a field with typeahead
|
|
||||||
case 16: // shift
|
|
||||||
return
|
|
||||||
|
|
||||||
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