I'm not quit sure if I understand the question, isnt it just something
like:

var ns = new noobSlide('myslide', { size:300, ....});
shortcut.add("Left",function() {
        ns.walk();
},{

        'type':'keydown',
        'propagate':true,
        'target':document

});



On Oct 13, 5:27 am, khosis <[email protected]> wrote:
> Hey,
>
> I've set up a nice noobSlide gallery plus added HTML param capturing
> so I can call the slide at any image I need (it's working really
> neat).
>
> Now, I thought it would be even greater if I could browse using arrow
> keys. So, I found a proper script:
>
> http://www.openjs.com/scripts/events/keyboard_shortcuts/shortcut.js
>
> And it's working just fine giving ie. JS alert whenever key is
> pressed, like:
>
> shortcut.add("Left",function() {
>         alert("Left pressed");},{
>
>         'type':'keydown',
>         'propagate':true,
>         'target':document
>
> });
>
> But I wasn't able to hook up the noobSlide action (like OBJECT.walk).
>
> Any ideas how to call the OBJECT.walk method using previousIndex and
> nextIndex properties within scortcut.add function?
>
> Regards and big thanks in advance
> Khosis

Reply via email to