Hi all,
When a TextModel is contained in a TabModel, right and left keyboard
navigation doesn't work in the textarea.
Example :

| ui  |
ui := DynamicComposableModel new
        title: 'test';
        instantiateModels: #(#tabManager #TabManagerModel);
        yourself.
ui tabManager
        addTab:
                (TabModel new
                        label: 'Test';
                        model: (ui instantiate: TextModel);
                        yourself).
ui
        openWithSpecLayout:
                (SpecLayout composed
                        add: #tabManager;
                        yourself)

I don't know what happens exactly, but some key bindings are registered from
ComposableModel >> #registerKeyStrokesForPreviousFor: and
#registerKeyStrokesForNextFor:.
They handle left and right keyboard inputs. The only solution i found is to
override these methods with a ^self, that avoid all keystrokes handling for
next and previous focus in Spec models...

Any ideas?
(I tested in a fresh pharo5 image)

Regards,
Glenn.





-----
Glenn Cavarlé
--
View this message in context: 
http://forum.world.st/Spec-TabManagerModel-prevents-the-right-left-keyboard-navigation-in-TextModel-tp4846158.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Reply via email to