Skip to main content
Participant
Jul 16, 2009 12:03 PM UTC
Question

Disable ctrl+v

Hi all,

it  is possible to disable the native comportment ctrl+v on textlayout ?

Or if  not  what  is the solution for  paste an image.

For the moment if  i copy an image from the mac finder, when i paste  it  in the textlayout i get only the name.

My little workaround is  to use the keybord event, it run, but now  i have my image and the name of image.

Regards.

Stef

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participating Frequently
Jul 16, 2009 1:36 PM UTC

Hi,

Copying an image from the file system is not supported.

You can cancel paste using the following steps:

- Add an event listener on TextFlow for FlowOperationEvent.FLOW_OPERATION_BEGIN

- In the event handler, look at the passed-in parameter 'event' of type FlowOperationEvent. If event.operation is of type PasteOperation, call event.preventDefault().

Abhishek

(Adobe Systems Inc.)

Translate
pfff___Author
Participant
Jul 16, 2009 3:49 PM UTC

Hi,

thanks for your answer.

For the paste with  the file system i use  the clipboard ( i m in AIR app ), and it is working , the only thing is that  i must clear the clipboard after the operation, else i have lot of stranges comportements, my image is pasted again and  again, if  i try to delete text etc ...

Regards

Stef

Translate