Skip to main content
Participant
July 16, 2009
Question

Disable ctrl+v

  • July 16, 2009
  • 1 reply
  • 932 views

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 has been closed for replies.

1 reply

Participating Frequently
July 16, 2009

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.)

pfff___Author
Participant
July 16, 2009

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