[PD] Tcl-tk plugin to avoid paste going to edit mode

Dan Wilcox danomatika at gmail.com
Mon Feb 19 00:36:52 CET 2018

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180219/1f7c8d07/attachment.html>

More information about the Pd-list mailing list