disable modale escape for now
This commit is contained in:
parent
60c0b5f0d2
commit
80ff685148
|
@ -97,11 +97,10 @@ export default Ember.Component.extend({
|
||||||
$picker
|
$picker
|
||||||
.css({width: "", left: "", bottom: ""})
|
.css({width: "", left: "", bottom: ""})
|
||||||
.empty();
|
.empty();
|
||||||
|
|
||||||
$modal.removeClass("fadeIn");
|
$modal.removeClass("fadeIn");
|
||||||
|
|
||||||
this._unbindEvents();
|
this._unbindEvents();
|
||||||
|
|
||||||
$filter, $results, $list = null;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
show() {
|
show() {
|
||||||
|
@ -133,16 +132,7 @@ export default Ember.Component.extend({
|
||||||
this._bindCategoryClick();
|
this._bindCategoryClick();
|
||||||
this._bindModalClick();
|
this._bindModalClick();
|
||||||
this._bindFilterInput();
|
this._bindFilterInput();
|
||||||
// this._bindEscape();
|
|
||||||
},
|
|
||||||
|
|
||||||
_bindEscape() {
|
|
||||||
this.$().on("keydown", e => {
|
|
||||||
if (e.which === 27) {
|
|
||||||
this.set("active", false);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if(!this.site.isMobileDevice) {
|
if(!this.site.isMobileDevice) {
|
||||||
this._bindHover();
|
this._bindHover();
|
||||||
}
|
}
|
||||||
|
@ -158,7 +148,6 @@ export default Ember.Component.extend({
|
||||||
this.$(window).off("resize");
|
this.$(window).off("resize");
|
||||||
$modal.off("click");
|
$modal.off("click");
|
||||||
Ember.$("#reply-control").off("div-resized");
|
Ember.$("#reply-control").off("div-resized");
|
||||||
// this.$().off("keydown");
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_filterEmojisList() {
|
_filterEmojisList() {
|
||||||
|
|
Loading…
Reference in New Issue