Re: pasting into X11 applications from Aqua apps
Re: pasting into X11 applications from Aqua apps
- Subject: Re: pasting into X11 applications from Aqua apps
- From: Vincent Lefevre <email@hidden>
- Date: Sat, 11 Aug 2007 04:05:12 +0200
- Mail-followup-to: email@hidden
On 2007-08-09 19:19:23 -0700, Ben Byer wrote:
> One thing that's kept this (seemingly simple) problem from being resolved
> is that it's not entirely clear how it should work.
>
> Obviously, you want it to paste when you hit Cmd-V -- and we could probably
> assume you want it to paste into the frontmost window. However (AFAIK --
> could be mistaken), there is no standard X11 event that can be sent to
> "paste".
Doesn't X11 have drag-and-drop which could be similar to a paste?
> A few potential solutions come to mind:
>
> A) just send that app a middle-click -- this would work for many this, but
> what if you already have text selected somewhere?
X11.app should assert PRIMARY selection ownership before sending the
middle-click. I think that should be OK. But this should be optional.
> B) Translate Cmd-V to Control-V, since many modern X apps support that to
> paste -- but what about those that don't?
IMHO, this would be a bad idea for two reasons. First, Ctrl-V pastes
the contents of the X CLIPBOARD, not the PRIMARY selection; so, this
would be inconsistent. Second, Ctrl-V doesn't mean paste for all
applications, in particular Ctrl-V has its own meaning in terminals.
This is an inconsistency in X11: cut/copy/paste should have been done
with Meta-X/C/V (a bit like Cmd-X/C/V in Mac OS X).
> C) Convert each character into a keystroke ... :(
with unpredictable side effects...
D) Simulate a drag-and-drop (if possible). But this would not work
in all applications, and this would be a bit inconsistent with the
PRIMARY selection.
--
Vincent Lefèvre <email@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden