Results 1 to 4 of 4

Thread: Cellediting tab navigation not working after edit completed with a different key

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2017
    Posts
    27

    Default Cellediting tab navigation not working after edit completed with a different key

    Hello,
    I have an issue with the usability of the cellediting plugin.

    Example:
    http://examples.sencha.com/extjs/6.5...mary-grid.html

    Everything works fine when using the tab key to go through the cells. But when I actually edit a cell using the "Enter" key it's im possible to keep tabbing to the next cell.
    I have activted selectOnTab already to have the possibility to select values from a dropdown and go to the next cell. But there are cases where I have to use the "Enter" key to save a value and in this case I can't keep using the Tab key unless I manually click inside a field again to activate the edit mode.

    Is there a possibility to make the tab key just go to the next cell after "losing" focus on the previous one by pressing Enter or Escape?

    I mean you could press enter again to edit the very same field therefor the col index is still available..

    The issue in the code is that selectionModel() wasEditing is set to false in the function onKeyTab in Ext.grid.NavigationModel after pressing Enter. Due to this fact onEditorTab isn't called anymore. The value is supposed to be true.

    Since the functionality is present I consider this as a bug.

  2. #2
    Sencha User
    Join Date
    May 2017
    Posts
    27

    Default

    Actually I posted the ext 6.5 example so the "bug" is present there as well. After entering a value and pressing ESC(cancel)/ENTER(save) for the cell I expect it not to lose the tab navigation on the site. But as wasEditing is set to false it's never remembering it's position for tabKey.

  3. #3

    Default

    Do not press enter. After completing editing simply press tab to go on next cell. If you press the enter, it will lose focus and therefore focus will not move to next cell.

  4. #4
    Sencha User
    Join Date
    May 2017
    Posts
    27

    Default

    I know it's possible to select on tab. But exactly why does pressing enter/escape lose the focus? We got a large software and lots of data to be entered. Some cells might not be filled, some cells are muliline cells which has to be confirmed with "Enter" some cells are checkboxes and for some the "selectOnTab" simply can't be activated for different reasons.

    The point is that losing focus is not an intended thing usability wise.

    My workaround is to set "wasEditiing" to true in cancelEdit/afterEdit of the cellediting but this should be the standard behaviour as pressing "Enter" means you actually were editing a cell and completed it. The functionality and the conditions are already present in the onKeyTab function - it's just not used as the flag isn't set correctly.

    Especially when entering large data the cell editing somehow lacks usability wise. Besides the Enter/Esc problem only editable cells should be selected pressing tab for instance. Or at least an option for that.

Similar Threads

  1. cellediting edit event
    By nsilva in forum Ext 5: Q&A
    Replies: 1
    Last Post: 9 Mar 2016, 8:37 AM
  2. Replies: 1
    Last Post: 12 Aug 2015, 8:31 PM
  3. CellEditing Plugin - complete edit
    By kkris1983 in forum Ext: Discussion
    Replies: 1
    Last Post: 24 May 2012, 4:39 AM
  4. Keyboard Navigation with Cellediting
    By elilindner in forum Ext: Discussion
    Replies: 0
    Last Post: 30 Jun 2011, 6:06 PM

Posting Permissions

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