Page 1 of 1

VGUI frame closes when you press enter (SOLVED)

PostPosted: Thu Aug 08, 2013 7:56 pm
by SM Sith Lord
I have a VGUI frame with some buttons and a TextEntry on it. When you press ENTER when the TextEntry box is active, the window closes. It calls the OnCommand("Close") message, but I want it to call the OnCommand("OK") message instead.

How can I control the behavior for pressing ENTER inside of a TextEntry on my panel?

UPDATE:
Pressing ENTER was actually just executing what ever Button had its "default" property set to 1. Problem solved, sry.