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:
N-Shar-ma 2023-03-31 19:18:23 +05:30 committed by Tim Abbott
parent 6c82772e15
commit b406cc84ff
1 changed files with 1 additions and 5 deletions

View File

@ -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