Re: Inserting the PRIMARY selection



On Thu, 2011-02-24 at 08:19 +0000, Andy Spencer wrote:
> 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 think most terminal applications will paste the PRIMARY selection when
> the user presses Shift-Insert, however GTK+ inserts the CLIPBOARD
> instead. I know inserting CLIPBOARD is consistent with Win32 and with
> some ideas about of how X11 is supposed to work [1], but it's also makes
> GTK+ applications inconsistent with most terminal applications.
> 
> Anyway, I was wondering if the GTK+ developers would be open to making
> the selection used by Shift-Insert configurable? I'll volunteer to write
> the code, but I don't want too if it's going to get rejected right off.
> 
> [1] http://standards.freedesktop.org/clipboards-spec/clipboards-0.1.txt

If you're using Linux, you can already set one of your keyboard keys to
be the middle mouse button. See /proc/sys/dev/mac_hid/ and check the web
for more info on how to set it up.

Cheers



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