Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pasting into X11 applications from Aqua apps



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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden

References: 
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Ben Eisenbraun <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Jonas Maebe <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Dave Williss <email@hidden>)
 >Re: pasting into X11 applications from Aqua apps (From: Ben Byer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.