--- keypad-test.c	2003-04-24 16:22:11.000000000 +0300
+++ /home/csongor/install_kits/at-spi/test/keypad-test.c	2003-04-24 16:24:20.000000000 +0300
@@ -61,14 +61,14 @@
   keypad_keyset = SPI_createAccessibleKeySet (16, NULL, get_keypad_keycodes (), NULL);
 
   retval = SPI_registerAccessibleKeystrokeListener(keypad_key_listener,
-			       		  keypad_keyset,
+			       		  SPI_KEYSET_ALL_KEYS,
 					  SPI_KEYMASK_UNMODIFIED,
 					  (unsigned long) ( SPI_KEY_PRESSED |
 							    SPI_KEY_RELEASED ),
-					  SPI_KEYLISTENER_ALL_WINDOWS);
+					  SPI_KEYLISTENER_CANCONSUME | SPI_KEYLISTENER_NOSYNC);
   fprintf (stderr, "Keypad key registry: result %s\n", retval ? "succeeded" : 
 	"failed");
-
+/*
   retval = SPI_registerAccessibleKeystrokeListener(keypad_key_listener,
 			       		  keypad_keyset,
 					  SPI_KEYMASK_SHIFT,
@@ -118,7 +118,7 @@
 
   fprintf (stderr, "Mod3-Shift-Keypad key registry: result %s\n", retval ? "succeeded" : 
 	"failed");
-
+*/
   SPI_event_main ();
 
   putenv ("AT_BRIDGE_SHUTDOWN=1");
@@ -165,7 +165,7 @@
 static void
 print_key_event (const AccessibleKeystroke *key, char *prefix)
 {
-  fprintf (stderr, "%s KeyEvent %s%c [keysym 0x%x] (keycode %d); string=%s; time=%lx\n",
+  fprintf (stderr, "%s KeyEvent %s%c [keysym 0x%ld] (keycode %d); string=%s; time=%lx\n",
 	   prefix,
 	  (key->modifiers & SPI_KEYMASK_ALT)?"Alt-":"",
 	  ((key->modifiers & SPI_KEYMASK_SHIFT)^(key->modifiers & SPI_KEYMASK_SHIFTLOCK))?
