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:
parent
85dcba200f
commit
5d72a7bdbd
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue