You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Able to selecting character when in composition status(between compositionstart event and compositionend event) with all four arrow keys and not trigger other key event.
When there are some search result and text still in composition status
press down arrow: able to select character with Chinese IME
press up arrow: nothing happen
When there is a search suggestions and text still in composition status
press right arrow: nothing happen, the autocomplete with suggestions show trigger after compositionend event
Actual behaviour
When there are some search result and text still in composition status
press down arrow: unable to selecting character and another same word shows up in input box
press up arrow: another same word shows up in input box
When there is a search suggestions and text still in composition status
press right arrow: autocomplete with suggestions been triggered and press down another same word before autocompleted shows up in input box
Steps to reproduce
This bug seems only happen on macOS.
Need Chinese IME to reproduce this bug. Install Chinese IME Zhuyin - Traditional (in Chinese, Traditional).
Type 5j/, space, and jp6 with Zhuyin - Traditional IME in search bar.
When there is a underline under text means these words are in composition status.
Because 中文 has search results and suggestions, so any of press down arrow, up arrow, or right arrow those bugs could be reproduced when 中文 in composition status.
This video shows searching with 中文 (with search results) in composition status and press arrow down bug. But with other words without search results like 測試 the composition ability is working fine.
Thanks for reporting! As discussed on Gitter, I'm unable to test Chinese search, so we're going to need to solve this together. First thing I'll try is to filter keyup events between compositionstart and compositionend, as suggested.
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Chinese words can not select character separately when the search result div show up.
May be related with
mkdocs-material/src/assets/javascripts/browser/keyboard/index.ts
Line 102 in 9655c3a
mkdocs-material/src/assets/javascripts/components/search/suggest/index.ts
Line 91 in 9655c3a
mkdocs-material/src/assets/javascripts/components/search/query/index.ts
Line 128 in f4f9c21
Expected behaviour
Able to selecting character when in composition status(between compositionstart event and compositionend event) with all four arrow keys and not trigger other key event.
Actual behaviour
Steps to reproduce
Zhuyin - Traditional
(in Chinese, Traditional).5j/
, space, andjp6
withZhuyin - Traditional
IME in search bar.中文
has search results and suggestions, so any of press down arrow, up arrow, or right arrow those bugs could be reproduced when中文
in composition status.Package versions
This bug found on mkdocs-material doc website
Configuration
This bug found on [mkdocs-material doc website](https://squidfunk.github.io/mkdocs-material/)
System information
The text was updated successfully, but these errors were encountered: