mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 08:41:40 +00:00
more tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
19bec265bc
commit
daae8f8bf0
@ -146,7 +146,7 @@ var KEYBOARD_CONFIG = {
|
|||||||
title: 'Global',
|
title: 'Global',
|
||||||
doc: 'These key bindings work in most other modes.',
|
doc: 'These key bindings work in most other modes.',
|
||||||
|
|
||||||
// Aliases...
|
// Actions...
|
||||||
'.next-screen': doc('Next screen',
|
'.next-screen': doc('Next screen',
|
||||||
function(){
|
function(){
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@ -213,7 +213,6 @@ var KEYBOARD_CONFIG = {
|
|||||||
shift: 'Right',
|
shift: 'Right',
|
||||||
// screen-oriented movement...
|
// screen-oriented movement...
|
||||||
ctrl: 'Left',
|
ctrl: 'Left',
|
||||||
// XXX this does not work...
|
|
||||||
'ctrl+shift': '.next-screen',
|
'ctrl+shift': '.next-screen',
|
||||||
},
|
},
|
||||||
Home: doc('First image',
|
Home: doc('First image',
|
||||||
|
|||||||
12
ui/modes.js
12
ui/modes.js
@ -221,8 +221,12 @@ var toggleKeyboardHelp = createCSSClassToggler('.viewer', 'help-mode overlay',
|
|||||||
|
|
||||||
// build the help...
|
// build the help...
|
||||||
var doc = buildKeybindingsHelpHTML(KEYBOARD_CONFIG)
|
var doc = buildKeybindingsHelpHTML(KEYBOARD_CONFIG)
|
||||||
|
.on('click', function(){
|
||||||
|
event.stopImmediatePropagation()
|
||||||
|
return false
|
||||||
|
})
|
||||||
.css({
|
.css({
|
||||||
cursor: 'hand',
|
cursor: 'auto',
|
||||||
})
|
})
|
||||||
.appendTo(body)
|
.appendTo(body)
|
||||||
|
|
||||||
@ -231,6 +235,9 @@ var toggleKeyboardHelp = createCSSClassToggler('.viewer', 'help-mode overlay',
|
|||||||
.one('click', function(){
|
.one('click', function(){
|
||||||
toggleKeyboardHelp('off')
|
toggleKeyboardHelp('off')
|
||||||
})
|
})
|
||||||
|
.css({
|
||||||
|
cursor: 'hand',
|
||||||
|
})
|
||||||
|
|
||||||
// scroll to the help...
|
// scroll to the help...
|
||||||
// NOTE: need to set the scroll handler AFTER we
|
// NOTE: need to set the scroll handler AFTER we
|
||||||
@ -258,6 +265,9 @@ var toggleKeyboardHelp = createCSSClassToggler('.viewer', 'help-mode overlay',
|
|||||||
// animate things if we are not at the top...
|
// animate things if we are not at the top...
|
||||||
if(body.scrollTop() > 0){
|
if(body.scrollTop() > 0){
|
||||||
body
|
body
|
||||||
|
.css({
|
||||||
|
cursor: '',
|
||||||
|
})
|
||||||
.animate({
|
.animate({
|
||||||
scrollTop: 0,
|
scrollTop: 0,
|
||||||
}, _cleanup)
|
}, _cleanup)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user