fixed the tab scroll issue...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-07 03:23:20 +04:00
parent bffee17553
commit f64db62e88
4 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,5 @@
[_] 38% Priority work [_] 39% Priority work
[_] 75% general todo [_] 76% general todo
[_] 0% Priority work for 10.03.13 [_] 0% Priority work for 10.03.13
[_] load/save from JSON [_] load/save from JSON
[_] add page via template [_] add page via template
@ -102,8 +102,6 @@
[X] title [X] title
[X] name [X] name
[_] BUG: 3 fingers+ do not work on android... [_] BUG: 3 fingers+ do not work on android...
[_] BUG: tab navigation will scroll the view...
| need to either prevent tab nav or control it so as not to get off page...
[_] 70% build a custom scroll lib... [_] 70% build a custom scroll lib...
[X] 100% features: [X] 100% features:
[X] drag/scroll [X] drag/scroll
@ -172,6 +170,10 @@
[_] try using the scroll event to see of we reached the limit... [_] try using the scroll event to see of we reached the limit...
| and move the limit accordingly | and move the limit accordingly
[_] BUG: scrool seems to do odd things on refresh... [_] BUG: scrool seems to do odd things on refresh...
[X] BUG: tab navigation will scroll the view...
| need to either prevent tab nav or control it so as not to get off page...
|
| now tabs switch pages.
[X] Editor: add toggleEditiorMode to all editables in all versions... [X] Editor: add toggleEditiorMode to all editables in all versions...
| text areas, inputs, ... | text areas, inputs, ...
[X] add global credits and copyright page... [X] add global credits and copyright page...

View File

@ -191,6 +191,7 @@ var keyboard_config = {
default: nextPage, default: nextPage,
shift: prevPage shift: prevPage
}, },
Tab: 'Space',
Enter: function(){ togglePageView('on') }, Enter: function(){ togglePageView('on') },
// combined navigation with actions.. // combined navigation with actions..
Up: function(){ togglePageView() }, Up: function(){ togglePageView() },

View File

@ -415,6 +415,7 @@ function setCurrentPage(n, use_transitions){
$('.viewer').trigger('pageChanged', n) $('.viewer').trigger('pageChanged', n)
$(':focus').blur()
return cur return cur
} }

View File

@ -165,6 +165,7 @@ function makeKeyboardHandler(keybindings, unhandled){
} }
} else { } else {
// simple callback... // simple callback...
//res = handler(evt)
res = handler() res = handler()
// if the handler explicitly returned false break out... // if the handler explicitly returned false break out...
if(res === false){ if(res === false){