When InlineDocViewer has scrollbars, don't let keyboard scrolling events propagate

This is for #5884.