TreeFilter for 2.0

Searching about for a 2.0 treefilter, I found this thread. The 2.0 TreeFilter however, wasn't behaving in the manner in which I expected...so I baked this code up. It works pretty rapidly, on the principle of marking used paths from the leaves.

Two questions:
1)I noticed that I must press space bar to make the inputed filter value to have effect on the tree. Is it a normal way?
2)In Ext 2.0 API Document query programe, the Ext.tree.TreeFilter is used,
I try to use TreeFilter instead, but did not succeed. Anyone can help?