Re: complex hotkey
- From: Paul Davis <paul linuxaudiosystems com>
- To: kyanh o2 pl
- Cc: gtk-list <gtk-list gnome org>
- Subject: Re: complex hotkey
- Date: Wed, 01 Feb 2006 09:48:56 -0500
On Wed, 2006-02-01 at 12:41 +0100, kyanh o2 pl wrote:
> hi all,
> some KDE applications have some complex hotkey (like Emacs:) for
> example, `control +meta +K +E', `control +meta +X +F', etc.
> Is there any way to implement this feature for a GTK application?
depends on what you mean by implement.
Gtk accelerators are by definition combinations of a single non-modifier
keyval with 0 or more modifiers. You therefore cannot use Gtk
accelerators for this purpose.
You can write your own key handling code, probably using either the
key_press and key_release events on a top level window, or a keysnooper.
This code is free to do anything it wants.
] [Thread Prev