Try calling Event#preventDefault() and/or Event#stopPropagation() from your
table code.  Some combination of one or both of these should prevent the
ScrollPanel from scrolling.

Also, note that the ScrollPanel isn't actually handling the key event and
changing the scroll position.  The browser natively scrolls divs when you
press up/down.

Thanks,
John LaBanca
[email protected]


On Wed, Oct 27, 2010 at 5:54 PM, MickeyR <[email protected]> wrote:

> Hi,
>
> Got a problem that's stumping me.
>
> I have a FlexTable (displaying several rows of String data) placed in
> a ScrollPanel.
>
> In the FlexTable I have a single row selected. So, I want the
> FlexTable to respond to UP and DOWN arrow keypress actions to change
> the row that is selected. To do this I wrap the FlexTable in a
> FocusPanel and it can now respond to key press actions.
>
> But the problem is that the ScrollPanel is also responding to these UP
> and DOWN keypress actions. So not only does my selected row move, but
> the ScrollPanel starts scrolling - as if it has the focus of my UP and
> DOWN key actions.
>
> How can I stop the ScrollPanel responding in this way ?
>
> Any help, much appreciated,
> M.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to