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 minIndex = 0
|
||||||
let maxIndex = getState().flowView.data.length - 1
|
let maxIndex = getState().flowView.data.length - 1
|
||||||
let newIndex
|
let newIndex
|
||||||
if (!currentSelectionIndex) {
|
if (currentSelectionIndex === undefined) {
|
||||||
newIndex = (shift < 0) ? minIndex : maxIndex
|
newIndex = (shift < 0) ? minIndex : maxIndex
|
||||||
} else {
|
} else {
|
||||||
newIndex = currentSelectionIndex + shift
|
newIndex = currentSelectionIndex + shift
|
||||||
|
@ -180,7 +180,7 @@ export function onKeyDown(e) {
|
|||||||
break
|
break
|
||||||
|
|
||||||
case Key.ESC:
|
case Key.ESC:
|
||||||
dispatch(selectFlowRelative(null))
|
dispatch(flowsActions.select(null))
|
||||||
break
|
break
|
||||||
|
|
||||||
case Key.LEFT:
|
case Key.LEFT:
|
||||||
|
Loading…
Reference in New Issue
Block a user