You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Scrollable disables left/right arrow keys for all input fields (v. 1.1.1) Created Nov 3, 2009

This thread is solved

Views: 2056     Replies: 3     Last reply Feb 1, 2010  
You must login first before you can use this feature

cornelius

Posts: 1

Registered:
Nov 3, 2009

Scrollable disables left/right arrow keys for all input fields (v. 1.1.1)

Posted: Nov 3, 2009

First of all, thanks for jquery tools!

When the "keyboard" setting is enabled for scrollable, other input fields (ie. input, textarea) on the page loose the ability to move their text cursor with the left/right arrow keys.

To reproduce, instantiate a scrollable. "keyboard" is enabled by default. Then place an input field anywhere on the page.

Perhaps it would be best to disable scrollable's keyboard functionality when an input field has the focus? Or maybe disable "keyboard" setting by default?

The easy workaround/fix was to simply set the "keyboard" to false when instantiating scrollable.

Thanks!

wadewinningham

Posts: 1

Registered:
Jan 5, 2010

Scrollable disables left/right arrow keys for all input fields (v1.1.2)

Posted: Jan 5, 2010

Reply to: Scrollable disables left/right arrow keys for all input fields (v. 1.1.1), from cornelius
Confirmed. The same issue occurs with v1.1.2.

You can disable/re-enable the arrow key behavior by altering the input and textarea focus/blur events as in the following code:


var scrollable = $('#inbox').scrollable({api:true});
$('#inbox input, #inbox textarea')
	.focus(function(){scrollable.getConf().keyboard = false; scrollable.reload();})
	.blur( function(){scrollable.getConf().keyboard = true;  scrollable.reload();});

bikeiowa

Posts: 1

Registered:
Jan 31, 2010

Scrollable disables left/right arrow keys for all input fields

Posted: Jan 31, 2010

Reply to: Scrollable disables left/right arrow keys for all input fields (v1.1.2), from wadewinningham
Has anyone been able to get the arrow key behavior back with the above code?

This is the last piece of code that run before the page loads.
The image scrolls still work, but no matter what I do the arrow keys do not work any where else but the JQuery area.

Are there any other fixes?

custa1200

Posts: 54

Registered:
Oct 31, 2009

» Scrollable disables left/right arrow keys for all input fields

Posted: Feb 1, 2010

Reply to: Scrollable disables left/right arrow keys for all input fields , from bikeiowa
This has been added to the issues register.