GNOME Bugzilla – Bug 344364
Alt+Left/Right reorders tabs if not swallowed by Gecko
Last modified: 2007-01-12 01:53:01 UTC
epiphany 2.15.2 gtk+ 2.9.2 gecko from firefox 1.5.0.4 When I hit Alt+Left (back), if the page is already at the beginning of the tab history, the tab bar is reordered, the current tab moving to the left. The same happens with Alt+Right. This is surprising and (no doubt) non-higgy. I guess Gecko is (sensibly) failing to swallow the keysym and it's getting interpreted by GtkNotebook.
Created attachment 67018 [details] [review] 344364.bugzilla.gnome.org-intercept-alt-left-right.patch Block keystroke if not swallowed by Gecko.
Created attachment 67019 [details] [review] 344364.bugzilla.gnome.org-intercept-alt-left-right.patch I really should get into the habit of testing patches *before* submitting them...
I cannot reproduce this... do you have Alt-Left/Right assigned to move tabs menu items in the Tabs menu?
No, I have Shift+Ctrl+Page Up/Down (the usual, I think). Strange that you can't reproduce it - are you sure you're running gtk+ 2.9.2 (or later CVS)?
Weird, I can reproduce now, maybe I tried the wrong epiphany. So this appears to be by design in gtk 2.9 gtknotebook: gtk_binding_entry_add_signal (binding_set, keysym, GDK_MOD1_MASK, "reorder_tab", 2, GTK_TYPE_DIRECTION_TYPE, direction, G_TYPE_BOOLEAN, move_to_last); gtk_binding_entry_add_signal (binding_set, keypad_keysym, GDK_MOD1_MASK, "reorder_tab", 2, GTK_TYPE_DIRECTION_TYPE, direction, G_TYPE_BOOLEAN, move_to_last); But I think this ought to use Ctrl-PgUp/Down instead. That would conflict with some textview bindings in gedit however... still, Alt-Left/Right is just wrong. CCing some gtk+ devs for opinions.
Looks good, until bug 350342 is resolved. Please add a comment pointing to the bug reports when committing this. Commit to gnome-2-16 and HEAD.
Seem this is obsolete now that gtk bug 350342 is fixed?
Yup, guess so.
*** Bug 395165 has been marked as a duplicate of this bug. ***
Nope it isn't, still happens here :).
Note that it was fixed in GTK 2.10.7 and trunk, do you have any of these? In fact, I've just noticed that it's now gecko which is invasive to GTK, when focus is in a notebook tab (or any widget) the keybinding moves through history (GTK trunk and ephy 2.17.4 here)
Hmmm, so the problem mutated? :/. Now I'm confused, is this still valid or not?
not really, Gecko seems to swallow all the events it handles, regardless of whether it has the focus or not, it's just more noticeable now that it shares a keybinding with a widget in ephy GUI...
Alt-Left/Right moving through history is managed _by Epiphany_, not gecko.
Ah :), then the summary is wrong. Totally unimportant for the issue I mentioned. Perhaps should be moved to a new bug, and this one get closed?
Yes, please.
I've just opened bug #395652 :)