Navigates to the previous widget in a widget group.
()
| 153 | |
| 154 | /** Navigates to the previous widget in a widget group. */ |
| 155 | private _groupPrev() { |
| 156 | const currGroup = this.inputs.activeItem()?.group(); |
| 157 | const nextGroup = this.navigationBehavior.peekPrev()?.group(); |
| 158 | |
| 159 | if (!currGroup) { |
| 160 | return; |
| 161 | } |
| 162 | |
| 163 | if (currGroup !== nextGroup) { |
| 164 | this.navigationBehavior.goto( |
| 165 | this.navigationBehavior.peekLast({ |
| 166 | items: currGroup.inputs.items(), |
| 167 | })!, |
| 168 | ); |
| 169 | |
| 170 | return; |
| 171 | } |
| 172 | |
| 173 | this.navigationBehavior.prev(); |
| 174 | } |
| 175 | |
| 176 | /** Navigates to the widget targeted by a pointer event. */ |
| 177 | private _goto(e: MouseEvent) { |
no test coverage detected