Skip to content

Commit a18af71

Browse files
committed
Search: do search on full and partial text insert via mouse context menu
1 parent dd68860 commit a18af71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

template/app/controller/Search.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,18 @@ Ext.define('Docs.controller.Search', {
9696
clearTimeout(this.searchTimeout);
9797
this.searchTimeout = Ext.Function.defer(function() {
9898
this.search(el.value);
99+
this.searchTimeout = void 0;
99100
}, this.basicSearchDelay, this);
100101
}
101102
},
103+
change: function(tf, newValue, oldValue){
104+
if(newValue && !oldValue){
105+
this.getDropdown().show();
106+
this.search(newValue);
107+
} else if(!this.searchTimeout && this.getDropdown().isVisible()){
108+
this.search(newValue);
109+
}
110+
},
102111
focus: function(el) {
103112
if (el.value && this.getDropdown().store.getCount() > 0) {
104113
this.getDropdown().show();

0 commit comments

Comments
 (0)