Commit f3012310 by Valera Rozuvan

Enabled tabbing to volume slider.

parent 5380b5cf
......@@ -61,10 +61,8 @@ function () {
slide: state.videoVolumeControl.onChange
});
// Make sure that we can't focus the actual volume slider while Tabing.
state.videoVolumeControl.volumeSliderEl.find('a').each(function (index, value) {
$(value).attr('tabindex', '-1');
});
// Make sure that we can focus the actual volume slider while Tabing.
state.videoVolumeControl.volumeSliderEl.find('a').attr('tabindex', '0');
state.videoVolumeControl.el.toggleClass('muted', state.videoVolumeControl.currentVolume === 0);
}
......@@ -88,7 +86,11 @@ function () {
});
state.videoVolumeControl.buttonEl.on('blur', function() {
$(this).parent().removeClass('open');
state.videoVolumeControl.volumeSliderEl.find('a').focus();
});
state.videoVolumeControl.volumeSliderEl.find('a').on('blur', function () {
state.videoVolumeControl.el.removeClass('open');
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment