  	GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);
  	/* Read the keyboard modifiers, though they're probably garbage. */
  	if (gdk_event_get_state((GdkEvent*)event, &modifiers)) {
-@@ -6083,6 +6308,18 @@
+@@ -6083,6 +6310,18 @@
  	}
  #endif
  	terminal = VTE_TERMINAL(widget);

 
 	/* Clear modifiers. */
 	terminal->pvt->modifiers = 0;
@@ -9569,6 +9834,10 @@
 	parent_class = g_type_class_peek_parent (klass);
 	/* Override some of the default handlers. */
 	gobject_class->finalize = vte_terminal_finalize;

diff -ur vte-trunk/src/Makefile.am vte-patched/src/Makefile.am
--- vte-trunk/src/Makefile.am	2008-02-20 11:50:51.000000000 +0200
+++ vte-patched/src/Makefile.am	2008-02-20 11:52:12.000000000 +0200
@@ -21,7 +21,7 @@
 	unitable.JIS0212 \
 	unitable.KSX1001
 
-AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@ -DG_DISABLE_ASSERT
+AM_CFLAGS = @VTE_CFLAGS@ @CFLAGS@ @X_CFLAGS@ -DG_DISABLE_ASSERT -DMAEMO_CHANGES
 AM_LDFLAGS = @LDFLAGS@
 
 EXTRA_libvte_la_SOURCES = keysyms.c
diff -ur vte-trunk/src/keymap.c vte-patched/src/keymap.c
--- vte-trunk/src/keymap.c	2008-02-20 11:50:51.000000000 +0200
+++ vte-patched/src/keymap.c	2008-02-20 11:52:12.000000000 +0200
@@ -838,7 +838,7 @@
 
 	{GDK_KP_Space,		_vte_keymap_GDK_KP_Space},
