Skip to content

Commit

Permalink
Merge pull request #8 from bgr/accept_keypad_enter
Browse files Browse the repository at this point in the history
Accept input when keypad Enter is pressed
  • Loading branch information
stillwwater committed Nov 17, 2018
2 parents 4ce8c9b + 2fb1f4d commit b22724e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CommandTerminal/Terminal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ public class Terminal : MonoBehaviour

if (Event.current.Equals(Event.KeyboardEvent("escape"))) {
SetState(TerminalState.Close);
} else if (Event.current.Equals(Event.KeyboardEvent("return"))) {
} else if (Event.current.Equals(Event.KeyboardEvent("return"))
|| Event.current.Equals(Event.KeyboardEvent("[enter]"))) {
EnterCommand();
} else if (Event.current.Equals(Event.KeyboardEvent("up"))) {
command_text = History.Previous();
Expand Down

0 comments on commit b22724e

Please sign in to comment.