On Tue, Dec 6, 2011 at 4:32 PM, Tudor Girba
<tudor@tudorgirba.com> wrote:
Hi,
I am trying to handle pasting in a PluggableTextMorph, but there seems to be a problem induced by Keymapping.
Consider the following simple case:
morph := (PluggableTextMorph
� � � � � � � �on: StringHolder new
� � � � � � � �text: #contents
� � � � � � � �accept: #acceptContents:)
� � � � � � � �autoAccept: true;
� � � � � � � �color: Color white;
� � � � � � � �yourself.
morph openInWindow
In the regular Pharo image it behaves as expected:
- If you type some text, it gets auto accepted (there is no orange triangle on the top right)
- If you use Ctrl+v, it auto accepts
- If you use Cmd+v (on Mac) or Alt+v (on Windows), it also auto accepts.
When Keymapping is loaded we have a problem:
- If you type some text, it gets auto accepted (there is no orange triangle on the top right)
- If you use Ctrl+v, it auto accepts
===> But if you use Cmd+v (on Mac) or Alt+v (on Windows), the orange triangle appears. If you inspect the contents, indeed they are not updated.
I tried to look into this, but I did not manage to get to the bottom of this. Can anyone help?
Haha, those are just the platforms I can't test well...� On tuesday we with Debora will look at this (and she has a Mac :D).
Guille