提交 1e0535cb 编写于 作者: G gusreiber

keyup for keydown

上级 94f79885
......@@ -127,10 +127,8 @@ ConfigTableMetaData.prototype.addFindWidget = function() {
});
var findTimeout;
thisTMD.findInput.keydown(function() {
thisTMD.findInput.keyup(function() {
//keydown needs to wait a pulse for the value to be applied to the input.
setTimeout(function(){
var val = thisTMD.findInput.val();
//if the keydown does not set a value, this filtering should exit.
......@@ -146,7 +144,7 @@ ConfigTableMetaData.prototype.addFindWidget = function() {
findTimeout = undefined;
thisTMD.showSections(thisTMD.findInput.val());
}, 300);
},1);
});
this.configWidgets.append(findWidget);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册