GNOME Bugzilla – Bug 786529
Shift+Ctrl for multiple selection does not work in GtkTreeView
Last modified: 2018-05-02 18:52:56 UTC
Selection of multiple rows in a GtkTreeView with 1. Click followed by 2, Shift+Click (range of rows selected) and adding one row with 3. Ctrl+Click works well. But it is not possible to add further ranges of rows with 4. Ctrl+Shift+Click (second range of rows selected): + + * 1. Click \ + * | first range of rows + * 2. Shift-Click / + + * 3. Ctrl-Click \ + * | second range of rows + * | + * 4. Ctrl-Shift-Click / +
Thanks for reporting this. Please provide GTK version information by setting the "Version" field.
I have seen this bug in gtk3 3.22.18 and gtk2 2.24-31. This can be easily tested by opening files in gedit.
Is this documented as somewhere as supported ?
I don't know, if it is somewhere documented as a supported feature. In Gtk3 it is alternatively possible to select further ranges of selection by using Ctr+Click+Drag. But in Gtk2, this is not possible. In both Gtk2 and Gkt3 it is not possible to select further ranges of selection only by using keyboard without mouse. In my opinion, this should be fixed.
The relevant GtkTreeView code follows this logic: > if (modify) {...} else if (extend) {...} It never accounts for the `modify && extend` case, and that's why holding both Ctrl+Shift is the same as holding Ctrl alone. Nautilus has custom event handling to allow Ctrl+Shift to select additional ranges, as requested here. Matthias, would a patch/merge request for this be considered, if not for Gtk+3, at least for Gtk+4? (Same issue reported for Gtk+2: bug 762398)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/881.