1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Close AutoComplete without removing cursors

This commit is contained in:
Chernyavsky Andrey 2025-05-18 17:46:26 +05:00
parent 85dcba200f
commit 5d72a7bdbd
2 changed files with 10 additions and 2 deletions

View file

@ -4260,7 +4260,7 @@ namespace Beefy.widgets
} }
} }
public void RemoveSecondaryTextCursors() public virtual void RemoveSecondaryTextCursors(bool force = true)
{ {
if (mTextCursors.Count == 1) if (mTextCursors.Count == 1)
return; return;
@ -4657,7 +4657,7 @@ namespace Beefy.widgets
} }
else if (keyEvent.mKeyCode == .Escape) else if (keyEvent.mKeyCode == .Escape)
{ {
ewc.RemoveSecondaryTextCursors(); ewc.RemoveSecondaryTextCursors(force: false);
isSingleInvoke = true; isSingleInvoke = true;
} }

View file

@ -7322,5 +7322,13 @@ namespace IDE.ui
RehupLineCoords(animIdx, animLines); RehupLineCoords(animIdx, animLines);
} }
public override void RemoveSecondaryTextCursors(bool force = true)
{
if ((!force) && (mAutoComplete != null))
return;
base.RemoveSecondaryTextCursors(force);
}
} }
} }