Changeset 242057 in webkit


Ignore:
Timestamp:
Feb 25, 2019 2:22:56 PM (5 years ago)
Author:
Matt Baker
Message:

Web Inspector: REGRESSION: TreeElement or Table row selected using the keyboard should always be revealed
https://bugs.webkit.org/show_bug.cgi?id=194918
<rdar://problem/48289314>

Reviewed by Devin Rousso.

  • UserInterface/Views/Table.js:

(WI.Table.prototype.selectionControllerSelectionDidChange):

  • UserInterface/Views/TreeOutline.js:

(WI.TreeOutline.prototype._treeKeyDown):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r242049 r242057  
     12019-02-25  Matt Baker  <mattbaker@apple.com>
     2
     3        Web Inspector: REGRESSION: TreeElement or Table row selected using the keyboard should always be revealed
     4        https://bugs.webkit.org/show_bug.cgi?id=194918
     5        <rdar://problem/48289314>
     6
     7        Reviewed by Devin Rousso.
     8
     9        * UserInterface/Views/Table.js:
     10        (WI.Table.prototype.selectionControllerSelectionDidChange):
     11
     12        * UserInterface/Views/TreeOutline.js:
     13        (WI.TreeOutline.prototype._treeKeyDown):
     14
    1152019-02-25  Devin Rousso  <drousso@apple.com>
    216
  • trunk/Source/WebInspectorUI/UserInterface/Views/Table.js

    r241652 r242057  
    620620        }
    621621
    622         if (selectedItems.size === 1) {
    623             let rowIndex = this._indexForRepresentedObject(selectedItems.firstValue);
    624             if (!this._isRowVisible(rowIndex))
    625                 this.revealRow(rowIndex);
     622        if (this._selectionController.lastSelectedItem) {
     623            let rowIndex = this._indexForRepresentedObject(this._selectionController.lastSelectedItem);
     624            this.revealRow(rowIndex);
    626625        }
    627626
  • trunk/Source/WebInspectorUI/UserInterface/Views/TreeOutline.js

    r242017 r242057  
    662662            handled = this._selectionController.handleKeyDown(event);
    663663            this._itemWasSelectedByUser = false;
     664
     665            if (handled)
     666                nextSelectedElement = this.selectedTreeElement;
    664667        }
    665668
Note: See TracChangeset for help on using the changeset viewer.