|
|
@ -10,16 +10,17 @@ namespace ICSharpCode.PythonBinding |
|
|
|
{ |
|
|
|
{ |
|
|
|
public override CompletionItemListKeyResult ProcessInput(char key) |
|
|
|
public override CompletionItemListKeyResult ProcessInput(char key) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (key == '*') { |
|
|
|
if (IsNormalKey(key)) { |
|
|
|
return ProcessAsterisk(); |
|
|
|
return CompletionItemListKeyResult.NormalKey; |
|
|
|
|
|
|
|
} else if (key == '(') { |
|
|
|
|
|
|
|
return CompletionItemListKeyResult.NormalKey; |
|
|
|
} |
|
|
|
} |
|
|
|
return base.ProcessInput(key); |
|
|
|
return base.ProcessInput(key); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CompletionItemListKeyResult ProcessAsterisk() |
|
|
|
bool IsNormalKey(char key) |
|
|
|
{ |
|
|
|
{ |
|
|
|
InsertSpace = false; |
|
|
|
return (key == '*') || (key == '('); |
|
|
|
return CompletionItemListKeyResult.NormalKey; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|