[SSE] Fix Bug 59851
This commit is contained in:
parent
f3cf69c0a1
commit
4c3918e67e
|
@ -102,7 +102,9 @@ define([ 'text!spreadsheeteditor/main/app/template/WatchDialog.template',
|
|||
tabindex: 1
|
||||
});
|
||||
this.watchList.on('item:select', _.bind(this.onSelectWatch, this))
|
||||
.on('item:keydown', _.bind(this.onKeyDown, this));
|
||||
.on('item:keydown', _.bind(this.onKeyDown, this))
|
||||
.on('item:dblclick', _.bind(this.onDblClickWatch, this))
|
||||
.on('entervalue', _.bind(this.onEnterValue, this));
|
||||
|
||||
this.btnAdd = new Common.UI.Button({
|
||||
el: $('#watch-dialog-btn-add', this.$window)
|
||||
|
@ -253,6 +255,15 @@ define([ 'text!spreadsheeteditor/main/app/template/WatchDialog.template',
|
|||
this.updateButtons();
|
||||
},
|
||||
|
||||
onDblClickWatch: function(lisvView, itemView, record) {
|
||||
record && this.api.asc_findCell('\'' + record.get('sheet') + '\'' + '!' + record.get('cell'));
|
||||
},
|
||||
|
||||
onEnterValue: function(lisvView, record) {
|
||||
if (this.watchList.store.length===0) return;
|
||||
record && this.api.asc_findCell('\'' + record.get('sheet') + '\'' + '!' + record.get('cell'));
|
||||
},
|
||||
|
||||
onKeyDown: function (lisvView, record, e) {
|
||||
if (e.keyCode==Common.UI.Keys.DELETE && !this.btnDelete.isDisabled()) {
|
||||
this._fromKeyDown = true;
|
||||
|
|
Loading…
Reference in a new issue