VGUI frame closes when you press enter (SOLVED)

Grab your favourite IDE and tinker with the innards of game engines

VGUI frame closes when you press enter (SOLVED)

Postby SM Sith Lord on Thu Aug 08, 2013 7:56 pm

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.
SM Sith Lord
Been Here A While
Been Here A While
 
Joined: Sat Nov 25, 2006 4:25 pm
Location: Los Angles, CA

Return to Programming

Who is online

Users browsing this forum: Google [Bot]