11import * as React from 'react'
22import * as DOMHelper from 'utils/DOMHelper'
33import { OperatingSystems , os } from 'utils/general'
4- import { loadWithPJAX } from 'utils/hooks/usePJAX '
4+ import { loadWithFastRedirect } from 'utils/hooks/useFastRedirect '
55import { VisibleNodes } from 'utils/VisibleNodesGenerator'
66import { AlignMode } from '../useVirtualScroll'
77import { VisibleNodesGeneratorMethods } from './useVisibleNodesGeneratorMethods'
@@ -100,7 +100,7 @@ export function useHandleKeyDown(
100100 } else if ( focusedNode . type === 'blob' ) {
101101 const focusedNodeElement = DOMHelper . findNodeElement ( focusedNode , event . currentTarget )
102102 if ( focusedNodeElement && focusedNode . url )
103- loadWithPJAX ( focusedNode . url , focusedNodeElement )
103+ loadWithFastRedirect ( focusedNode . url , focusedNodeElement )
104104 } else if ( focusedNode . type === 'commit' ) {
105105 window . open ( focusedNode . url )
106106 }
@@ -119,7 +119,7 @@ export function useHandleKeyDown(
119119 event . currentTarget ,
120120 )
121121 if ( focusedNodeElement && focusedNode . url )
122- loadWithPJAX ( focusedNode . url , focusedNodeElement )
122+ loadWithFastRedirect ( focusedNode . url , focusedNodeElement )
123123 } else if ( focusedNode . type === 'commit' ) {
124124 window . open ( focusedNode . url )
125125 }
0 commit comments