Question: How do I make the tab key behave as a Enter key in a GtkEntry?
I am able to catch the 'enter' key with the signal "activated". How can I catch the 'tab' key for GtkEntry?

```
static void enter(GtkWidget *widget, GtkWidget *entry)
{
  const gchar *entry_text;
  entry_text = gtk_entry_get_text(GTK_ENTRY(entry));
  printf("Entry contents: %s\n", entry_text);
}

entry = gtk_entry_new();
g_signal_connect(entry, "activated", G_CALLBACK(enter), entry);

```

In the same way, how can I get notified when the tab key is pressed?

Answer: 
Try this one,

```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <TextView
        android:id="@+id/textView"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:text="TextView"
        android:gravity="center_horizontal"
        android:textSize="30sp" />

    <ListView
        android:id="@+id/myList"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/textView" >
    </ListView>

</RelativeLayout>

```

**Output**

![enter image description here](https://i.stack.imgur.com/BNifw.png)
use Relative layout as container 

here is the layout

```
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent">

    <LinearLayout android:id="@+id/row1" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_alignParentBottom="true">
        <TextView android:text="This is bottom text"
            android:layout_height="wrap_content" android:layout_width="fill_parent"></TextView>
    </LinearLayout>
    <LinearLayout android:layout_above="@id/row1"
        android:layout_width="fill_parent" android:layout_height="fill_parent">
        <ListView android:layout_width="fill_parent"
            android:layout_height="fill_parent"></ListView>
    </LinearLayout>

</RelativeLayout>

```