tal icon indicating copy to clipboard operation
tal copied to clipboard

Navigation from keyboard widget to horizontallist

Open Haroon-KA opened this issue 6 years ago • 2 comments

Hi,

I am having a component, with vertical list component. In the vertical list, I am having a keyboard and couple of other buttons in a horizontalList. I am passing the focus to keyboard on load and then on pressing the down arrow key the keyboard buttons are getting selected. Once I reaching the last row in keyboard, the control is not getting transferred to the horizontalList. Can someone please help.

Thanks,

Haroon-KA avatar Mar 29 '18 06:03 Haroon-KA

The focus will move to the horizontal list only if both keyboard and horizontallist are added to the vertical list. Can you double check your code and confirm if the appendChildWidget function on vertical list has been called twice? - once with keyboard and once with horizontallist widget.

m0hamm3d-ac avatar Apr 01 '18 08:04 m0hamm3d-ac

@m0hamm3d-ac , Thank you for the pointer . I had cross checked the implementation to see that both the keyboard and horizontal list widget is appended to the verticallist

Please find below the code here :

`_onBeforeRender: function(ev) {

                this.emailVerticalList.insertChildWidget(0, this.backButton);
                this.emailVerticalList.insertChildWidget(1, this.emailInputButton);
                this.emailVerticalList.insertChildWidget(2, this.emailErrorLabel);
                this.emailVerticalList.insertChildWidget(3, this.keyboard);
                this.emailOptionsHorizontalList.insertChildWidget(0, this.upperCaseButton);
                this.emailOptionsHorizontalList.insertChildWidget(1, this.lowerCaseButton);
                this.emailOptionsHorizontalList.insertChildWidget(2, this.specialCharacterButton);
                this.emailVerticalList.insertChildWidget(4, this.emailOptionsHorizontalList)
                this.emailVerticalList.insertChildWidget(5, this.navButton);
            };`

I am not able to understand what I am doing wrong here :(

Haroon-KA avatar Apr 13 '18 09:04 Haroon-KA

We have deprecated this project and there are no plans for active development going forward.

Please see the deprecation notice.

kukulaka avatar Jan 06 '23 11:01 kukulaka