rdsmithaz has asked for the wisdom of the Perl Monks concerning the following question:
I have an application where this "used to" work, but then a new version of Tk or Tk::Text broke it.
The problem is that <3> is bound to a menu. The real problem is that all combinations of <3> are bound to the menu, so no matter what combination of key modifiers (Shift, Alt, Ctrl, etc.) I press, the text widget "does me the favor" of mapping that to the menu invocation. What I wanted was for Tk::Text to invoke the menu on <3> and *only* on <3>, not on <Shift-3> or <Meta-3> and so on.My favorite slander of microsoft applies here: "Do me a favor, don't do me any favors". I cannot seem to figure out how to bind the dragdrop motion event to some mouse/key combination.
For grins, I tried to delete the <Shift-3> binding like this:but this did nothing.$text->bind('<Shift-3>');
How can I wrest a mouse/key binding back from Tk::Text?
ThanksP.S. Again, long ago in a galaxy far away this *used* to work. I have a listbox dragdrop example working just fine in the same application so its not like I can't get dragdrop to work at all.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: make drag drop work in text widget
by zentara (Cardinal) on Jul 16, 2008 at 13:42 UTC | |
|
Re: make drag drop work in text widget
by Anonymous Monk on Jul 16, 2008 at 06:51 UTC | |
|
Re: make drag drop work in text widget
by rdsmithaz (Initiate) on Jul 16, 2008 at 16:02 UTC |