Option 1 is easier:
# this is the default in pd_bindings.tcl
bind all <$::modifier-Key-v> {menu_send %W paste}
# disabled
bind all <$::modifier-Key-v> {break}
Option 2 requires either overriding ::pd_menucommands::menu_send and intercepting the paste message or changing the paste handling in the core, I think.
Option 3: Maybe flatgui/entry shouldn't always go into edit mode (a bug) or at least have some way to control it's behavior (a feature)?
> On Feb 18, 2018, at 8:17 PM, pd-list-request(a)lists.iem.at wrote:
>
> Hello list,
>
> I had a question for any tcl-plugin programmer out there: is it possible
> (and easy) to make a GUI plugin that would avoid Pd going into edit mode
> when the paste key combination is pressed? The reason is, while using a
> patch with [flatgui/entry], the patch is always going into edit mode.
>
> I would imagine it could work in one of these ways, but I can't judge which
> is the easiest:
> - remove the key binding that makes ctrl+v go into edit mode
> or
> - keep the key binding, but after opening edit mode, it closes it again
>
> I tried IO's kiosk plugin, but it didn't help with this particular case.