mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-03 04:40:10 +00:00
tested local keyboard handling...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
1e8799042a
commit
ba76402c35
@ -264,7 +264,7 @@ function popDir(){
|
|||||||
// 'next'
|
// 'next'
|
||||||
// 'last'
|
// 'last'
|
||||||
// 'none' -- deselect
|
// 'none' -- deselect
|
||||||
// '!' -- return selected element if it exists...
|
// '!' -- return selected element if it exists...
|
||||||
// <number> -- select by sequence number...
|
// <number> -- select by sequence number...
|
||||||
// <elem> -- select a specific element...
|
// <elem> -- select a specific element...
|
||||||
function select(elem, browser){
|
function select(elem, browser){
|
||||||
@ -370,7 +370,8 @@ var KB = {
|
|||||||
'*':{
|
'*':{
|
||||||
F5: function(){ window.location.reload() },
|
F5: function(){ window.location.reload() },
|
||||||
},
|
},
|
||||||
'.browse:focus':{
|
//'.browse:focus':{
|
||||||
|
'.browse':{
|
||||||
Up: prev,
|
Up: prev,
|
||||||
Backspace: 'Up',
|
Backspace: 'Up',
|
||||||
Down: next,
|
Down: next,
|
||||||
@ -387,7 +388,8 @@ requirejs(['../lib/keyboard'], function(m){
|
|||||||
keyboard = m
|
keyboard = m
|
||||||
|
|
||||||
// setup base keyboard for devel, in case something breaks...
|
// setup base keyboard for devel, in case something breaks...
|
||||||
$(document)
|
//$(document)
|
||||||
|
$('.browse')
|
||||||
.keydown(
|
.keydown(
|
||||||
keyboard.makeKeyboardHandler(
|
keyboard.makeKeyboardHandler(
|
||||||
KB,
|
KB,
|
||||||
@ -467,3 +469,4 @@ $(function(){
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<!-- vim:set ts=4 sw=4 : -->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user