+2003-09-04 Bill Haneman <billh@gnome.org>
+
+ * cspi/spi_event.c: Documentation improvements for
+ (SPI_registerAccessibleKeylistener).
+
+ * docs/reference/tmpl/spi_registry.sgml:
+ Documentation improvements for SpiAccessibleKeylistenerCB.
+
2003-09-02 Mugurel Tudor <mugurelu@go.ro>
* configure.in: Added "ro" to ALL_LINGUAS.
2003-09-02 Mugurel Tudor <mugurelu@go.ro>
* configure.in: Added "ro" to ALL_LINGUAS.
* void (*AccessibleEventListenerCB) (AccessibleEvent *event);
*
* SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
* void (*AccessibleEventListenerCB) (AccessibleEvent *event);
*
* SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
+ * Note that AccessibleKeystrokeListeners may consume the event received
+ * if one of their callbacks returns TRUE (see SPI_registerAccessibleKeystrokeListener)
*/
typedef void (*AccessibleEventListenerCB) (const AccessibleEvent *event,
void *user_data);
*/
typedef void (*AccessibleEventListenerCB) (const AccessibleEvent *event,
void *user_data);
* the behavior of the notification/listener transaction.
*
* Register a listener for keystroke events, either pre-emptively for
* the behavior of the notification/listener transaction.
*
* Register a listener for keystroke events, either pre-emptively for
- * all windows (SPI_KEYLISTENER_ALL_WINDOWS), or
- * non-preemptively (SPI_KEYLISTENER_NOSYNC).
- * ( Other sync_type values may be available in the future.)
+ * all windows (SPI_KEYLISTENER_ALL_WINDOWS),
+ * non-preemptively (SPI_KEYLISTENER_NOSYNC), or
+ * pre-emptively at the toolkit level (SPI_KEYLISTENER_CANCONSUME).
+ * If ALL_WINDOWS or CANCONSUME are used, the event is consumed
+ * upon receipt if one of @listener's callbacks returns #TRUE.
+ * ( Other sync_type values may be available in the future )
*
* Returns: #TRUE if successful, otherwise #FALSE.
**/
*
* Returns: #TRUE if successful, otherwise #FALSE.
**/
<para>
This is a function which is specified when creating a KeystrokeListener.
It is called when an event being listened for occurs.
<para>
This is a function which is specified when creating a KeystrokeListener.
It is called when an event being listened for occurs.
+If it returns TRUE, this indicates that the event should be consumed
+rather than passed through; only callbacks whose listeners are
+registered with the SPI_KEYLISTENER_ALL_WINDOWS or
+SPI_KEYLISTENER_CANCONSUME flags can be consumed.