Re: complex hotkey

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

 



On Wed, 2006-02-01 at 12:41 +0100, kyanh@xxxxx 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


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux