Re: complex hotkey



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.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]