fix textbox listeners, check flags for Ctrl-A (#406)

This commit is contained in:
trickssss 2023-04-29 16:51:25 -06:00 committed by GitHub
parent 1ee4305554
commit dd19a8ed0d
2 changed files with 12 additions and 4 deletions

View file

@ -32,6 +32,11 @@ namespace HeavenStudio.Editor
_ => _ =>
{; {;
parameterManager.entity[propertyName] = inputFieldString.text; parameterManager.entity[propertyName] = inputFieldString.text;
}
);
inputFieldString.onEndEdit.AddListener(
_ =>
{;
Editor.instance.editingInputField = false; Editor.instance.editingInputField = false;
} }
); );

View file

@ -24,11 +24,14 @@ namespace HeavenStudio.Editor
if (buggedSelections.Count > 0) if (buggedSelections.Count > 0)
{ {
for (int i = 0; i < buggedSelections.Count; i++) for (int i = 0; i < buggedSelections.Count; i++)
Deselect(buggedSelections[i]); Deselect(buggedSelections[i]);
}
if (Editor.instance.isShortcutsEnabled)
{
if (Input.GetKey(KeyCode.LeftControl))
if (Input.GetKeyDown(KeyCode.A))
SelectAll();
} }
if (Input.GetKey(KeyCode.LeftControl))
if (Input.GetKeyDown(KeyCode.A))
SelectAll();
} }
public void ClickSelect(TimelineEventObj eventToAdd) public void ClickSelect(TimelineEventObj eventToAdd)