mail-archives/gtk-sharp-list/2005-August/006267.html

72 строки
2.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Grabbing a specific-key globally
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Grabbing%20a%20specific-key%20globally&In-Reply-To=8a03229432e1.42ed118f%40default.domain">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Next" HREF="006268.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Grabbing a specific-key globally</H1>
<B>Miguel de Icaza</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Grabbing%20a%20specific-key%20globally&In-Reply-To=8a03229432e1.42ed118f%40default.domain"
TITLE="[Gtk-sharp-list] Grabbing a specific-key globally">miguel at ximian.com
</A><BR>
<I>Mon Aug 1 11:21:24 EDT 2005</I>
<P><UL>
<LI>Next message: <A HREF="006268.html">[Gtk-sharp-list] Grabbing a specific-key globally
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6267">[ date ]</a>
<a href="thread.html#6267">[ thread ]</a>
<a href="subject.html#6267">[ subject ]</a>
<a href="author.html#6267">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello,
&gt;<i> I want my application to perform a certain action when a certain key is
</I>&gt;<i> pressed, no matter if the application is currently focused or not. The
</I>&gt;<i> actual thing I want to do is to assign a shortcut key for certain
</I>&gt;<i> forms in my application, so it is very possible that no form of the
</I>&gt;<i> application is focused (or visible, for that manner) when the shortcut
</I>&gt;<i> key is pressed. I would like to be able to define the key and its
</I>&gt;<i> modifiers. The way I see it, is that there should be a way to assign a
</I>&gt;<i> delegate to a key using some kind of a &quot;GrabKey&quot; method, perhaps part
</I>&gt;<i> of gdk, that receives the key, the modifiers, the lock-level (global
</I>&gt;<i> or application-only) and the delegate. However, I did not find any
</I>&gt;<i> method like that.
</I>
Look at the source code for Tomboy, it does that.
Miguel.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Next message: <A HREF="006268.html">[Gtk-sharp-list] Grabbing a specific-key globally
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6267">[ date ]</a>
<a href="thread.html#6267">[ thread ]</a>
<a href="subject.html#6267">[ subject ]</a>
<a href="author.html#6267">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>