Re: Handling (control - shift - s) in Key Press Event
- From: "John Cupitt" <jcupitt gmail com>
- To: Mystilleef <mystilleef gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Handling (control - shift - s) in Key Press Event
- Date: Fri, 19 May 2006 11:57:57 +0100
On 5/19/06, Mystilleef <mystilleef gmail com> wrote:
How does one trap (control - shift - s) in a key press event callback?
Something like (untested):
if( event->keyval == GDK_S &&
(event->state & GDK_SHIFT_MASK) &&
(event->state & GDK_CONTROL_MASK) ) {
printf( "poop!\n" );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]