专注于div只在单击滚动条时出现

时间:2017-02-12 07:18:19

标签: javascript jquery angularjs focus scrollbar

    app.directive("keyboardGridAccess", function ($timeout) {
    return{
        restrict: 'A',
        link: function (scope, element) {
            element.on("keydown", function (event) {
                $timeout(function () {                       
                    if (event.which === 9) {
                        $('.eft-body-col').first().find('span').attr('tabindex', 1).focus();

                    }
                 }, 0);
            });
        }
    };
});

专注于class'.left-body-col'仅在我点击滚动条时显示。我需要做些什么才能专注于点击标签?

0 个答案:

没有答案