-define(['Ajax', 'Environment', 'EventHandler', 'Ui/Alignment'], function(Ajax, Environment, EventHandler, UiAlignment) {
"use strict";
var _dropdownContainer = null;
redactor.WoltLabEvent.register('keydown', this._keyDown.bind(this));
redactor.WoltLabEvent.register('keyup', this._keyUp.bind(this));
+
+ UiCloseOverlay.add('UiRedactorMention-' + redactor.core.element()[0].id, this._hideDropdown.bind(this));
},
_keyDown: function(data) {
return;
}
+ if (this._dropdownActive) {
+ data.cancel = true;
+
+ // ignore arrow up/down
+ if (event.which === 38 || event.which === 40) {
+ return;
+ }
+ }
+
var text = this._getTextLineInFrontOfCaret();
if (text.length) {
var match = text.match(/@([^,]{3,})$/);