mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +00:00
minor tweeks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
96c6503b27
commit
ae819631bb
48
index.html
48
index.html
@ -148,9 +148,9 @@ var keyboard_config = {
|
|||||||
doc: '',
|
doc: '',
|
||||||
|
|
||||||
Esc: function(){
|
Esc: function(){
|
||||||
removeOverlay()
|
removeOverlay()
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// ignore all keys except Esc here...
|
// ignore all keys except Esc here...
|
||||||
@ -160,9 +160,9 @@ var keyboard_config = {
|
|||||||
|
|
||||||
//ignore: '*'
|
//ignore: '*'
|
||||||
Esc: function(){
|
Esc: function(){
|
||||||
$(':focus').blur()
|
$(':focus').blur()
|
||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
'.chrome:not(.inline-editor-mode)': {
|
'.chrome:not(.inline-editor-mode)': {
|
||||||
@ -170,27 +170,27 @@ var keyboard_config = {
|
|||||||
doc: '',
|
doc: '',
|
||||||
|
|
||||||
Esc: function(){
|
Esc: function(){
|
||||||
if(toggleEditor('?') == 'on'){
|
if(toggleEditor('?') == 'on'){
|
||||||
toggleEditor('off')
|
toggleEditor('off')
|
||||||
} else {
|
} else {
|
||||||
togglePageView('off')
|
togglePageView('off')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
Home: firstPage,
|
Home: firstPage,
|
||||||
End: lastPage,
|
End: lastPage,
|
||||||
Left: {
|
Left: {
|
||||||
default: prevPage,
|
default: prevPage,
|
||||||
ctrl: prevArticle,
|
ctrl: prevArticle,
|
||||||
},
|
},
|
||||||
Right: {
|
Right: {
|
||||||
default: nextPage,
|
default: nextPage,
|
||||||
ctrl: nextArticle,
|
ctrl: nextArticle,
|
||||||
},
|
},
|
||||||
Space: {
|
Space: {
|
||||||
default: nextPage,
|
default: nextPage,
|
||||||
shift: prevPage
|
shift: prevPage
|
||||||
},
|
},
|
||||||
Tab: 'Space',
|
Tab: 'Space',
|
||||||
Enter: function(){ togglePageView('on') },
|
Enter: function(){ togglePageView('on') },
|
||||||
// combined navigation with actions..
|
// combined navigation with actions..
|
||||||
@ -199,9 +199,9 @@ var keyboard_config = {
|
|||||||
|
|
||||||
F: function(){ togglePageFitMode() },
|
F: function(){ togglePageFitMode() },
|
||||||
B: {
|
B: {
|
||||||
default: toggleBookmark,
|
default: toggleBookmark,
|
||||||
ctrl: function(){ toggleThemes() },
|
ctrl: function(){ toggleThemes() },
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX this should not be in the production viewer...
|
// XXX this should not be in the production viewer...
|
||||||
E: function(){ toggleEditor() },
|
E: function(){ toggleEditor() },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user