mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed autocomplete incorrectly auto-inserting during '.(' and '(.)'
This commit is contained in:
parent
05f17ce3ae
commit
a1a5eebd8e
2 changed files with 8 additions and 1 deletions
|
@ -702,6 +702,8 @@ namespace IDE.ui
|
|||
|
||||
public void SelectDirection(int32 dir)
|
||||
{
|
||||
mAutoComplete.HasInteracted = true;
|
||||
|
||||
if (mEntryList.IsEmpty)
|
||||
return;
|
||||
int32 newSelection = mSelectIdx + dir;
|
||||
|
@ -1273,6 +1275,8 @@ namespace IDE.ui
|
|||
float mWantX;
|
||||
float mWantY;
|
||||
|
||||
public bool HasInteracted;
|
||||
|
||||
public this(EditWidget targetEditWidget)
|
||||
{
|
||||
mTargetEditWidget = targetEditWidget;
|
||||
|
|
|
@ -3889,7 +3889,10 @@ namespace IDE.ui
|
|||
}
|
||||
else if (c == '.')
|
||||
{
|
||||
doAutocomplete = true;
|
||||
if (mAutoComplete?.HasInteracted == true)
|
||||
{
|
||||
doAutocomplete = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue