Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

Terminal not closing itself on | (Pipe) click #2

@Chillu1

Description

@Chillu1

Since I changed how the terminal open itself from "Event.current.Equals(Event.KeyboardEvent(ToggleHotkey)"
To "Input.inputString.Equals(ToggleHotkey)", the close functionality became a bit more buggy, since Event.current was parsed only once (?), while inputString is there for longer. So it changes state multiple times.

I changed it in the first place because Event.current doesn't work with keys like Pipe (|) on Norwegian keyboard (?).

if (Input.inputString.Equals(ToggleHotkey) || Input.GetButton("Terminal"))
{
SetState(TerminalState.OpenSmall);
initial_open = true;
}
else if (Input.inputString.Equals(ToggleFullHotkey))
{
SetState(TerminalState.OpenFull);
initial_open = true;
}

else if (Input.inputString.Equals(ToggleHotkey))
{
ToggleState(TerminalState.OpenSmall);
}
else if (Input.inputString.Equals(ToggleFullHotkey))
{
ToggleState(TerminalState.OpenFull);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions