gtkentry and key-press-event
| From: | Lorrie Cooke | Date: | Tue, 07 Aug 2001 20:56:12 +0000 |
| Subject: | gtkentry and key-press-event | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-2581@lists.php.net to get a copy of this message | ||
Hi,
Im trying to make a GtkEntry to run a function after the enter key is pressed...
im using : $entrybox->connect_after('key-press-event', presskey,$entrybox);
to check if the enter key was pressed... however it doesnt seem to add a \n(or a \r) to the GtkEntry if its pressed...
So, is there a signal i can use that just tracks the enter key or what should i be using to test if its the enter key or not... I thought it be \n but apparantly its not..
Thanks :)
Loll