[PD-dev] Text box keybinding silent failure
Hans-Christoph Steiner
hans at at.or.at
Fri Sep 30 18:59:28 CEST 2011
Hm, this might point to what Ctrl-A isn't going to Home on Mac OS X.
Basically, this bind command replaces any binding:
$tkcanvas bind $mytag <Control-a> "$tkcanvas icursor $mytag 0"
Adding a + to the beginning of the bind function makes it append to the
existing list of bindings
$tkcanvas bind $mytag <Control-a> "+$tkcanvas icursor $mytag 0"
.hc
On Fri, 2011-09-30 at 09:07 -0700, Marvin Humphrey wrote:
> Greets,
>
> The emacs keybindings don't seem to be engaging on OS X. If I modify the
> following line in pdtk_text.tcl, I see the debug print output when I press
> <Control-a>, confirming that the binding fires -- but the cursor does not move.
>
> if {$::windowingsystem eq "aqua"} { # emacs bindings for Mac OS X
> - $tkcanvas bind $mytag <Control-a> "$tkcanvas icursor $mytag 0"
> + $tkcanvas bind $mytag <Control-a> "puts {Checkpoint 1 secured.}; $tkcanvas icursor $mytag 0"
> $tkcanvas bind $mytag <Control-e> "$tkcanvas icursor $mytag end"
> }
>
>
> I suspect this problem is related to why I'm having trouble getting a binding
> for <Return> to function correctly.
>
> Any ideas on why either $tkcanvas or $mytag would be causing silent failures
> of these bound scripts?
>
> Marvin Humphrey
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
More information about the Pd-dev
mailing list