mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
web: fix flow selection
This commit is contained in:
parent
518c28fff9
commit
18dd84b908
@ -182,7 +182,7 @@ export function selectRelative(shift) {
|
||||
let minIndex = 0
|
||||
let maxIndex = getState().flowView.data.length - 1
|
||||
let newIndex
|
||||
if (!currentSelectionIndex) {
|
||||
if (currentSelectionIndex === undefined) {
|
||||
newIndex = (shift < 0) ? minIndex : maxIndex
|
||||
} else {
|
||||
newIndex = currentSelectionIndex + shift
|
||||
|
@ -180,7 +180,7 @@ export function onKeyDown(e) {
|
||||
break
|
||||
|
||||
case Key.ESC:
|
||||
dispatch(selectFlowRelative(null))
|
||||
dispatch(flowsActions.select(null))
|
||||
break
|
||||
|
||||
case Key.LEFT:
|
||||
|
Loading…
Reference in New Issue
Block a user