Re: on application focus navigation (was: On ctrl-tab)



On Thu, Nov 26, 2009 at 2:53 PM, Johannes Schmid <jhs jsschmid de> wrote:

>
> To explain the source of the problem a bit: The menu shortcut for "Copy"
> is "Ctrl-C". Normally the keybindings for the upper most widget/window
> is computed first which means that if you press "Ctrl-C" it will
> activate the menu item. But "Copy" is bound to call
> gtk_text_view_copy_clipboard() and as such, even if you have a GtkEntry
> focused this will copy the selected text from the GtkTextView and not
> from the GtkEntry. That is usually not what you want and as such a hack
> was introduced to reverse the chain and call the top-most widget after
> all other widgets, which usually means that the key-press has already
> been handled before it reaches there.

Isn't it very obvious that a menuitem that is bound to the
'copy-from-textview' action will always copy from the text view ? If
you want a different behaviour, maybe you should bind the menuitem to
a 'copy-from-focussed-widget' action instead...


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