I'm trying to change some keybindings in pure data, I saw how to to it using custom plugins with tcl but the deletion command was not easy to figure out.
I read throughly pd_bindings.tcl and could understand how bindings works. I figured that "Delete" command is passed directly as key command to PD using
proc ::pd_bindings::sendkey
I then tried several methods but couldnt figure out how to set a new keybinding for deletion.
Tried this simple line
bind all <$::modifier-Key-w> {pdsend "pd key 0 Delete 119"}
tried adding this condition to ::sendkey (would bind 'w' key for deletion)
if { "$keycode" eq "25" } {
pdsend "pd key $state Delete 119"
}
none of those worked