colt365 / lunar-thu

Automatically exported from code.google.com/p/lunar-thu
0 stars 0 forks source link

SmartMe does not search again when clicking search icon. #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter any word like "LunaR" in the input text box
2. Click that word in the history window
3. Click the search icon button

What is the expected output? What do you see instead?
SmartMe should search the word again. However, it does not do anything.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by wuhaotsh@gmail.com on 1 Jan 2010 at 4:36

GoogleCodeExporter commented 9 years ago
这个我也注意到了。不过我发现很奇怪,如果严格按照你的��
�个操作步骤的话,确实会出Bug.但
是如果我做了一些别的操作之后再回头把某个词从历史记录��
�点入输入框中之后,再按搜索按钮
是可以搜索的。

请吴昊关注此问题。

Original comment by hollydon...@gmail.com on 2 Jan 2010 at 2:29

GoogleCodeExporter commented 9 years ago
This might be a feature instead of a bug because Tian wrote the following code 
intendly(which is the reason of the 'bug'):

if (text == _lastQueryText)
{
    return;
}

Original comment by wuhaotsh@gmail.com on 2 Jan 2010 at 7:13

GoogleCodeExporter commented 9 years ago
请林添回答此问题哈~~~~如果OK我们就算是Fixed了:)

Original comment by hollydon...@gmail.com on 2 Jan 2010 at 7:21

GoogleCodeExporter commented 9 years ago

Original comment by hollydon...@gmail.com on 2 Jan 2010 at 7:22

GoogleCodeExporter commented 9 years ago
原来的本意是避免延时搜索相同的词,避免不必要的结果刷��
�,而导致的不友好。

已经Fix了(revision: 169)。

目前的做法是区分延时搜索(DoDelayedQuery)和立即搜索(DoDirectQuer
y),它们共同调用内部函数
_DoQuery。对于立即搜索不加上述判断,认为用户的行为就是想
要重新搜索。

Original comment by bol...@gmail.com on 2 Jan 2010 at 6:39