Full page jscrollpane keyboard arrow keys focus -


i have 2 problems demonstrated in jscrollpane website. first problem in order focus page need click on actual page before can use keyboard arrow keys scroll. second problem, main problem, if adjust page size width scroll bar appears on page, need click mouse on bottom right scroll bar square before can use keyboard arrow keys scroll through page. example clicking on page not focus scroll bars.

you can use this:

$("#container_element").hover(function () {     $("#scrollable_element").focus(); //makes gain focus }); 

to make element cain focus when hover on (no need clicking).

and in case want lose focus when stop hovering, use this:

$("#container_element").mouseleave(function () {  $("#scrollable_element").blur(); //makes lose focus }); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -