[Gtk-sharp-list] global Shortcut

Charles Iliya Krempeaux charles@reptile.ca
12 May 2003 13:10:47 -0700


Hello,

I think what you should be looking at is the stuff in:

    Gdk.Key

In there there are things like:

    Gdk.Key.Control_L
    Gdk.Key.Control_R

For the left and right control key (respectively).

Also, there is:

    Gdk.Key.q
    Gdk.Key.Q

for the lower case and upper case control characters.

To be honest, I'm not completely sure how to check for a CTRL+Q.  You
may have to watch for the Control Key being pressed first and then
the Q... but I'm not sure.  The Gdk documation at:

    http://developer.gnome.org/

may help you with this though.


See ya

On Sun, 2003-05-11 at 12:29, Michael Ott wrote:
> Hello!
> 
> I want to use global mnemonic (ctrl + q for quit an application).
> 
> Is there any documentation. I do not found it, only the "standard"-
> mnemionics
>                                                                .--.
> Thanks in advanced                                            |o_o | 
>                                                               ||_/ |
> CU                                                           //   \ \ 
>                                                             (|     | )   
>   Michael                                                  /'\_   _/`\
>                                                            \___)=(___/
> --                                                       
>   /-----------------------------------------------------\
>   |  Michael Ott, Glockenhofstr. 29a, 90478 Nuernberg   |
>   | e-mail: michael@ZolnOtt.de, Tel. +49 9 11 41 88 576 |
>   \-----------------------------------------------------/
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-- 
     Charles Iliya Krempeaux, BSc
     charles@reptile.ca

________________________________________________________________________
 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/