Re: How to trap key strokes from the keyboard
- From: Havoc Pennington <hp redhat com>
- To: anil_19 mailcity com
- Cc: gtk-list gnome org, "gtk-list"@gnome.org
- Subject: Re: How to trap key strokes from the keyboard
- Date: 06 Aug 2000 22:59:36 -0400
"Anil 19 Kumar" <anil_19@lycos.com> writes:
> Hi,
>
> I want my application to receive keystrokes from the keyboard when it is not having focus. Please suggest a method for doing this.........
>
>
> email: anil@iiit.net
>
The only way to do it is to bind to specific keycodes using Xlib
directly (XGrabKey), see gnome-core/panel/global-keys.c for an
example. (cvs.gnome.org/lxr is a way to see this without using CVS).
Maybe you really just want to grab the focus with
gdk_pointer_grab/gdk_keyboard_grab?
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]