ID:2581040
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
It would be useful to have a way to intercept when the user intends to use their clipboard (CTRL+C, or CTRL+V) and access the data stored therein.

You can do this right now partially with javascript, but it really only works with copying to the clipboard, not accessing something stored there.
I need to think this over carefully because clipboards can be abused, but there may be some good uses here. Knowing your use cases would help.
My use case right now is for a custom input box that doesn't rely on using BYOND 4.0's interface. It's drawn on the screen using maptext.

It would be nice if people could copy and paste text as they would expect in any other text editor (which might lead to another feature request, copying map text).
I can see how this would be beneficial but it seems like that could be abused as well.
In response to Crazah
Why not use Ter's approach of swapping in an input control?
In response to Lummox JR
I think that's probably what I'll end up doing. It would still be cool to see this eventually make it's way into the language though.