GNOME Bugzilla – Bug 97860
ctl+key combos in main text field are broken
Last modified: 2011-02-04 16:11:59 UTC
This might be a gtk2.1 problem, but I only see it in gedit ATM- ctl+alt (to escape the text field) and ctl+pgup/ctl+pgdown to change tabs both seem broken.
I think GtkTextView is eating ctl+pgup/ctl+pgdown. In fact, ctrl+pgup moves the cursor at the beginning of the current line and ctrl+pgdown moves the cursor at the end of the current line. So, this is gtk+ bug.
Yes, people have been complaining about this sort of thing in a few places recently. I think the only real fix might be to have GtkNotebook use keys other than Ctrl+PgUp/PgDn for selecting next/previous tab, but it's kind of a cross-platform standard unfortunately :/
Marking this high, as it's a user-visible problem, but not sure what the best solution is. Can we change the textview bindings?
Making all 'high' textview bugs 2.2.0 as per havoc's request.
Isn't ctl+pgup/ctl+pgdown standard for both text widgets and notebooks? I'm not sure there's a reasonable solution here. Not sure we should keep the bug open forever unless there's some kind of proposed course of action.
If we change it for textview we'd also have to change it for treeview, scrolledwindow etc. which also use it for scroll left/right. And probably also for spinboxes which use Ctrl+PgUp/PgDn too, albeit for something different. I wouldn't be completely against choosing different keys for switching between notebook tabs, but off the top of my head I can't think of anything obvious, and we'd probably get a lot of complaints about breakage.
It is also possible to have multiple keybindings for the same action, say an alternate notebook keybinding.
What about adding Ctrl+Alt+PgUp/Down as alternate notebook keybinding? AFAIK, it is not a keybinding for GtkTextView.
You're right, no other control uses Ctrl+Alt+PgUp/PgDn for anything AFAIK.
I just discovered one precedent for Ctl+Alt+PgUp for notebook tab switching: Opera (seen in Opera 6.0/Win)
Created attachment 14075 [details] [review] here is a patch
The patch is to GtkNotebook so moving off TextView component so Owen will see it.
Killing GNOMEVER* keywords to stop cluttering up searches. The bug's really up to the Gtk team's triaging now.
Thoughts: - It won't solve everyone's problems since Control+Alt+Pg* are common window manager bindings. But the window manager will win so it doesn't make things any worse. - We don't already have any bindings on Control | Alt currently so this is sort of breaking new ground. Looks OK to commit. Actually, it seems to have been comitted accidentally to HEAD, so just needs to go into gtk-2-2 and a ChangeLog entry for HEAD. Oh, also, GDK_CONTROL_MASK|GDK_MOD1_MASK, Woudl generally get spaces around the '|'.
Committed to both branches.
*** Bug 90938 has been marked as a duplicate of this bug. ***