Ensure taht onKeyDown/Focus/Blur events are sent from ScrollView (#898)

They were only wired up for CustomScrollbar implementation, which means that VirtualListView would not work in acessibility mode unless Custom Scrollbars were enabled
This commit is contained in:
Brent Erickson 2018-11-08 19:18:33 -08:00 коммит произвёл Eric Traut
Родитель ab2f657fe2
Коммит ec74e05bc6
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -273,6 +273,9 @@ export class ScrollView extends ViewBase<RX.Types.ScrollViewProps, RX.Types.Stat
onTouchStart={ this._onTouchStart }
onTouchEnd={ this._onTouchEnd }
style={ this._getContainerStyle() as any }
onKeyDown={ this.props.onKeyPress }
onFocus={ this.props.onFocus }
onBlur={ this.props.onBlur }
data-test-id={ this.props.testId }
>
{ this.props.children }