Allow key bindings to paste PRIMARY selection
Submitted by Andy Spencer
Link to original bug (#643391)
Description
Created attachment 182026 Gtk 3 patch to add signal for pasting alternate selections
I would like to have a way to insert the PRIMARY selection into a GtkEntry/GtkTextView using only the keyboard. I commonly use a laptop that only has two buttons, and trying to press them simultaneously can be difficult at times.
I wrote a patch that adds a "paste-selection" signal to GtkEntry and GtkTreeView. This is very similar to the "paste-clipboard" signal but takes a parameter for which selection to use. Then a key-binding can added to ~/.config/gtk-3.0/gtk.css to paste the selection.
I found this this related Chromium bug while searching for information: http://code.google.com/p/chromium/issues/detail?id=28231
For reference, I also sent a message to the mailing list: https://mail.gnome.org/archives/gtk-devel-list/2011-February/msg00097.html
Patch 182026, "Gtk 3 patch to add signal for pasting alternate selections":
0001-Add-paste-selection-keybind-signal.patch