Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
Grid Navigation and Shift-Tab
posted

Hi.

 I'm trying to override the default navigation using the KeyDownHandler client event.  I want to skip over those columns or cells that are not editable when the user presses the arrow keys or the tab key.  I am able to handle the left and right arrows okay now, and a regular tab, but I cannot figure out how to trap out a shift+tab (which would mimic the left arrow).

 I would appreciate any input on this issue.

Parents
No Data
Reply
  • 28464
    posted

    Hello,

    It really depends how far you got with the KeyDownHandler (pasting some javascript code of the handler would help), but I guess you went almost to the end of your tasks since you already handle left, right and tab. 

    So I assume you already have the event passed to the KeyDownHandler to determine the actually key. To query for shiftKey you can use (assuming the event varaible is called e)

    e.shiftKey

    it returns true / false depending on the state of the shift key.

    Is this helpful / close to what you need? Or maybe I am missing something?

Children