Ask the focused panel/view to handle the keyboard focus before repositioning the keyboard focus. This avoids a brief flicker when repositioning outside of the current view's viewport where the keyboard focus would be seen outside of the viewport for a moment before scroll would happen and reposition the keyboard focus again
Ask the focused panel/view to handle the keyboard focus before repositioning the keyboard focus. This avoids a brief flicker when repositioning outside of the current view's viewport where the keyboard focus would be seen outside of the viewport for a moment before scroll would happen and reposition the keyboard focus again

marcuswestin/Focus