Results 1 to 7 of 7

Thread: Listening key events in Grid or Cell Editing plugin

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    26
    Vote Rating
    1
      0  

    Question Listening key events in Grid or Cell Editing plugin

    Hi,

    I have a grid contains some cell editing plugins, what i want to do is to add a listener to capture when a user press special key for example Enter Key and then apply my logic. or make it acts as tab button pressed.

    Thanks in advance,
    Jamil Isayyed

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    291
      0  

    Default

    You can listen for the specialkey event. Here's a Fiddle example:
    https://fiddle.sencha.com/#fiddle/24o

  3. #3
    Sencha User
    Join Date
    Oct 2009
    Posts
    69
    Answers
    3
    Vote Rating
    0
      0  

    Default

    This fiddle does not log the enter key event when I run it...

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    291
      0  

    Default

    Are you testing on the Name column? For me an ENTER press is caught and logged.

  5. #5
    Sencha User
    Join Date
    Sep 2015
    Posts
    7
    Vote Rating
    0
      0  

    Default

    but... in this case you are not using "cell editing plugin"...

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506
    Vote Rating
    291
      0  

    Default

    As far as I can tell, the Fiddle example is using the CellEditing plugin.

  7. #7
    Sencha User
    Join Date
    Sep 2015
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Sorry... by the way, how can i get the colIdx and rowIdx into the specialkey event? thanks...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •