Skip to content

Commit 07f7cd2

Browse files
committed
address rabbit comments
1 parent 5b90dce commit 07f7cd2

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/license.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ header: |
1414
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1515
// KIND, either express or implied. See the License for the
1616
// specific language governing permissions and limitations
17-
// under the License.
17+
// under the License.
18+

internal/forwarding.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,15 @@ func (m Model) updateForwardingInputs(msg tea.Msg) tea.Cmd {
212212
s := msg.String()
213213

214214
// Update focus position
215-
if (s == Up || s == ShiftTab) && focusIndex > 0 {
216-
focusIndex--
217-
} else if focusIndex < len(m.forwardingInputs)-1 {
218-
focusIndex++
215+
switch s {
216+
case Up, ShiftTab:
217+
if focusIndex > 0 {
218+
focusIndex--
219+
}
220+
case Down, Tab:
221+
if focusIndex < len(m.forwardingInputs)-1 {
222+
focusIndex++
223+
}
219224
}
220225

221226
// Update focus for all inputs

0 commit comments

Comments
 (0)