This commit is contained in:
谢思 2021-10-13 16:01:38 +08:00
parent b268b540d8
commit bc6ef583fb
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla
document.onkeydown = (e) => {
if (e.key === "@") {
// 输入@键后在对应的位置显示可选的项目成员
const selection = window.getSelection().anchorOffset;
setAtWhoVisible(true);
}else{
setAtWhoVisible(false);