-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve searching #954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve searching #954
Conversation
browser/main/TopBar/index.js
Outdated
| }) | ||
|
|
||
| // When the key is an alphabet, del, enter or ctr | ||
| if (e.keyCode <= 90) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work on various keyCodes... Need to change.
German: üöä
French: ù
Spanish: ñ
Russian: (work fine)
Chinese: (work fine by using pinyin keyboard)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to extend the keyCode scope to e.keyCode<=90 || 186<=e.keyCode<=222 according to http://www.javascripter.net/faq/keycodes.htm.
current specificationsThere are some unclear points.
|
|
chinese input has same problem |
|
@lyrl I know it. I have a question regarding Chinese keyboard. Is pinyin keyboard used by much Chinese?
|
|
@asmsuechan SouGou pinyin is most popular in china! http://pinyin.sogou.com/ |
|
@lyrl 谢谢你告诉我!I switched from Google pinyin keyboard to SouGou. |
|
Btw, under Linux, most Chinese people will choose fcitx. |
Some issues introduced in BoostIO#954 (BoostIO#954 (comment)): - search by `#tag1 #tag2` returns the results of only `#tag2` - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag) - search by `content #tag1` returns the results of only `#tag1` This commit fixing these: - search by `#tag1 #tag2` returns the results of only `#tag2` ![screencast]() - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag) ![screencast]() - search by `content #tag1` returns the results of only `#tag1` ![screencast]()
Some issues introduced in BoostIO#954 (BoostIO#954 (comment)): - search by `#tag1 #tag2` returns the results of only `#tag2` - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag) - search by `content #tag1` returns the results of only `#tag1` This commit fixing these: - search by `#tag1 #tag2` returns the results of only `#tag2`  - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag)  - search by `content #tag1` returns the results of only `#tag1`  NOTE: the examples works without `#` character too, because `findByWord()` checks the tags too.
Some issues introduced in BoostIO#954 (BoostIO#954 (comment)): - search by `#tag1 #tag2` returns the results of only `#tag2` - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag) - search by `content #tag1` returns the results of only `#tag1` This commit fixing these: - search by `#tag1 #tag2` returns the results of only `#tag2`  - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag)  - search by `content #tag1` returns the results of only `#tag1`  NOTE: the examples works without `#` character too, because `findByWord()` checks the tags too.
Some issues introduced in BoostIO#954 (BoostIO#954 (comment)): - search by `#tag1 #tag2` returns the results of only `#tag2` - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag) - search by `content #tag1` returns the results of only `#tag1` This commit fixing these: - search by `#tag1 #tag2` returns the results of only `#tag2`  - search by `#tag1 content` is as same as AND search by `#tag1 content` (and `#tag1` is regarded a word, not a tag)  - search by `content #tag1` returns the results of only `#tag1`  NOTE: the examples works without `#` character too, because `findByWord()` checks the tags too.
context
This PR fixes a problem which IME doesn't work on searching.
before
after
Boostnote will support IME input (I checked working in Japanese keyboard and Chinese pin yin keyboard)