if (this.editableTitle) {
this.headerEditEl = this.headerEl.select('.form-control',true).first();
this.headerEl.on('click', function() { this.toggleHeaderInput(true) } , this);
- this.headerEditEl .on('specialkey', function() { this.toggleHeaderInput(false) } , this);
+ this.headerEditEl.on('keyup', function(e) {
+ if(e.isNavKeyPress()){
+ this.toggleHeaderInput(false)
+ }
+ }, this);
+ this.headerEditEl.on('blur', function(e) {
+ this.toggleHeaderInput(false)
+ },this);
}
},
this.headerEditEl.dom.value = this.title;
this.headerEditEl.removeClass('d-none');
+ this.headerEditEl.dom.focus();
this.titleEl.addClass('d-none');
+
this.is_header_editing = true;
return
}