mirror of https://gitee.com/cf-fz/WebCAD.git
parent
cea0df4d0e
commit
eb1e32d946
@ -0,0 +1,17 @@
|
||||
import { app } from '../ApplicationServices/Application';
|
||||
import { GetAnyPrompt } from '../Common/InputState';
|
||||
|
||||
function ClearKeyWord()
|
||||
{
|
||||
app.m_Editor.m_CommandStore.keyWordList.length = 0;
|
||||
}
|
||||
|
||||
export function InitKeyWord(prompt: GetAnyPrompt)
|
||||
{
|
||||
if (prompt.KeyWordList)
|
||||
{
|
||||
app.m_Editor.m_CommandStore.keyWordList.length = 0;
|
||||
app.m_Editor.m_CommandStore.keyWordList.push(...prompt.KeyWordList);
|
||||
}
|
||||
return ClearKeyWord;
|
||||
}
|
Loading…
Reference in new issue