forked from Gitlink/forgeplus-react
atwho
This commit is contained in:
parent
b268b540d8
commit
bc6ef583fb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue