+
+static gboolean
+on_key_press (GtkWidget *w, GdkEventKey *e)
+{
+ PsppireDataEditor *de = PSPPIRE_DATA_EDITOR (w);
+ if (e->keyval == GDK_KEY_F2 &&
+ PSPPIRE_DATA_EDITOR_DATA_VIEW == gtk_notebook_get_current_page (GTK_NOTEBOOK (de)))
+ {
+ gtk_widget_grab_focus (de->datum_entry);
+ }
+
+ return FALSE;
+}
+