How to handle Ctrl+C/V/X accelerators?



Hi,

How exactly is one supposed to be handling Ctrl+X/C/V accelerators
(Cut/Copy/Paste) correctly?  The problem is that when those accelerators
are in the application menus, the menu callbacks seem to have precedence
over everything else; the menu callback is always fired, overriding the
normal GtkEntry keybindings altogether.

Are we supposed to check which widget has focus when the menu callback
is called, and manually call gtk_editable_cut_clipboard() etc. functions
if the focus is in a GtkEditable?

What about Ctrl+W (standard keybinding for Close, but also delete-word
in GtkEntry and friends in Emacs keybindings)?  Are we supposed to be
checking which widget is focused as well as what keybinding-theme the
user is using?

In our case the menu accelerators are set up by bonoboui, but I've come
to believe it essentially boils down to how Gtk is handling the
accelerators.


-- 
Tommi Komulainen                                 tommi komulainen iki fi
GPG 1024D/68388EE6    6FD6 DD79 EB38 BF6F 3533  09C0 04A8 9871 6838 8EE6

Attachment: signature.asc
Description: This is a digitally signed message part



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