File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments